查API,学新内容— (零) 随机数
0. 写在最前面
最近打算将空闲时间利用起来,查API,去学习自己还不是非常了解的内容,并把查到,学到的内容写下来,希望在这个过程可以提高自己的水平.首篇只作为尝试.
1. Random类
/**
* public class Arrays
* extends Object
* This class contains various methods for manipulating arrays (such as sorting and searching).
* This class also contains a static factory that allows arrays to be viewed as lists.
* The methods in this class all throw a NullPointerException, if the specified array reference is null, except where noted.
*
* The documentation for the methods contained in this class includes briefs description of the implementations.
* Such descriptions should be regarded as implementation notes, rather than parts of the specification.
* Implementors should feel free to substitute other algorithms, so long as the specification itself is adhered to.
* (For example, the algorithm used by sort(Object[]) does not have to be a MergeSort, but it does have to be stable.)
*
* This class is a member of the Java Collections Framework.
*
* Since:
* 1.2
*
* 此类包含用来操作数组(比如排序和搜索