类 LinearCongruentialRandom

  • 所有已实现的接口:
    Random

    public class LinearCongruentialRandom
    extends java.lang.Object
    implements Random
    Linear Congruence method for generating Pseudo Random Numbers Copy from "java.util.Random"
    • 构造器详细资料

      • LinearCongruentialRandom

        public LinearCongruentialRandom()
      • LinearCongruentialRandom

        public LinearCongruentialRandom​(long seed)
    • 方法详细资料

      • setSeed

        public void setSeed​(long seed)
      • next

        public int next​(int bits)
      • nextBytes

        public void nextBytes​(byte[] bytes)
        指定者:
        nextBytes 在接口中 Random
      • nextInt

        public int nextInt()
        指定者:
        nextInt 在接口中 Random
      • nextInt

        public int nextInt​(int bound)
        指定者:
        nextInt 在接口中 Random
      • nextLong

        public long nextLong()
        指定者:
        nextLong 在接口中 Random
      • nextBoolean

        public boolean nextBoolean()
        指定者:
        nextBoolean 在接口中 Random
      • nextFloat

        public float nextFloat()
        指定者:
        nextFloat 在接口中 Random
      • nextDouble

        public double nextDouble()
        指定者:
        nextDouble 在接口中 Random