This uses the static method random( ) in the Math library,which generates a double value between 0 and 1.

  • 它用到了Math库里的static(静态)方法random()。该方法的作用是产生0和1之间(包括0,但不包括1)的一个double值。
目录 查词历史