Method Summary
next(int bits) Generates the next pseudorandom number.
nextBoolean() Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.
nextBytes(byte[] bytes) Generates random bytes and places them into a user-supplied byte array.
nextDouble() Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
nextFloat() Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.
nextGaussian() Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence.
nextInt() Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
nextInt(int n) Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
nextLong() Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.
setSeed(long seed) Sets the seed of this random number generator using a single long seed.
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
2 ความคิดเห็น:
ควรมีตัวอย่างและคำอธิบายด้วยครับ
ไม่มีเรื่องการรับข้อมุลที่เป็น char
แสดงความคิดเห็น