Random

  • boolean nextBoolean()
  • void nextBytes(byte[] bytes)
  • nextDouble()
  • nextFloat()
  • nextGaussian()
  • nextInt()
  • nextInt(int n)
  • nextLong()
  • setSeed(long seed)

还有一点JDK1.8新增的方法

results matching ""

    No results matching ""