package random
- Alphabetic
- By Inheritance
- random
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val nextBoolean: ZIO[Random, Nothing, Boolean]
Generates a pseudo-random boolean.
- def nextBytes(length: => Int): ZIO[Random, Nothing, Chunk[Byte]]
Generates a pseudo-random chunk of bytes of the specified length.
- val nextDouble: ZIO[Random, Nothing, Double]
Generates a pseudo-random, uniformly distributed double between 0.0 and 1.0.
- def nextDoubleBetween(minInclusive: Double, maxExclusive: Double): ZIO[Random, Nothing, Double]
Generates a pseudo-random double in the specified range.
- val nextFloat: ZIO[Random, Nothing, Float]
Generates a pseudo-random, uniformly distributed float between 0.0 and 1.0.
- def nextFloatBetween(minInclusive: Float, maxExclusive: Float): ZIO[Random, Nothing, Float]
Generates a pseudo-random float in the specified range.
- val nextGaussian: ZIO[Random, Nothing, Double]
Generates a pseudo-random double from a normal distribution with mean 0.0 and standard deviation 1.0.
- val nextInt: ZIO[Random, Nothing, Int]
Generates a pseudo-random integer.
- def nextIntBetween(minInclusive: Int, maxExclusive: Int): ZIO[Random, Nothing, Int]
Generates a pseudo-random integer in the specified range.
- def nextIntBounded(n: => Int): ZIO[Random, Nothing, Int]
Generates a pseudo-random integer between 0 (inclusive) and the specified value (exclusive).
- val nextLong: ZIO[Random, Nothing, Long]
Generates a pseudo-random long.
- def nextLongBetween(minInclusive: Long, maxExclusive: Long): ZIO[Random, Nothing, Long]
Generates a pseudo-random long in the specified range.
- def nextLongBounded(n: => Long): ZIO[Random, Nothing, Long]
Generates a pseudo-random long between 0 (inclusive) and the specified value (exclusive).
- val nextPrintableChar: ZIO[Random, Nothing, Char]
Generates a pseudo-random character from the ASCII range 33-126.
- def nextString(length: => Int): ZIO[Random, Nothing, String]
Generates a pseudo-random string of the specified length.
- def setSeed(seed: Long): ZIO[Random, Nothing, Unit]
Sets the seed of this random number generator.
- def shuffle[A](list: => List[A]): ZIO[Random, Nothing, List[A]]
Randomly shuffles the specified list.
- object Random extends Serializable