Package

zio

random

Permalink

package random

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. random
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Random = Has[Service]

    Permalink

Value Members

  1. object Random extends Serializable

    Permalink
  2. val nextBoolean: URIO[Random, Boolean]

    Permalink

    generates a pseudo-random boolean.

  3. def nextBytes(length: ⇒ Int): ZIO[Random, Nothing, Chunk[Byte]]

    Permalink

    Generates a pseudo-random chunk of bytes of the specified length.

  4. val nextDouble: URIO[Random, Double]

    Permalink

    Generates a pseudo-random, uniformly distributed double between 0.0 and 1.0.

  5. def nextDoubleBetween(minInclusive: Double, maxExclusive: Double): URIO[Random, Double]

    Permalink

    Generates a pseudo-random double in the specified range.

  6. val nextFloat: URIO[Random, Float]

    Permalink

    Generates a pseudo-random, uniformly distributed float between 0.0 and 1.0.

  7. def nextFloatBetween(minInclusive: Float, maxExclusive: Float): URIO[Random, Float]

    Permalink

    Generates a pseudo-random float in the specified range.

  8. val nextGaussian: URIO[Random, Double]

    Permalink

    Generates a pseudo-random double from a normal distribution with mean 0.0 and standard deviation 1.0.

  9. val nextInt: URIO[Random, Int]

    Permalink

    Generates a pseudo-random integer.

  10. def nextIntBetween(minInclusive: Int, maxExclusive: Int): URIO[Random, Int]

    Permalink

    Generates a pseudo-random integer in the specified range.

  11. def nextIntBounded(n: ⇒ Int): URIO[Random, Int]

    Permalink

    Generates a pseudo-random integer between 0 (inclusive) and the specified value (exclusive).

  12. val nextLong: URIO[Random, Long]

    Permalink

    Generates a pseudo-random long.

  13. def nextLongBetween(minInclusive: Long, maxExclusive: Long): URIO[Random, Long]

    Permalink

    Generates a pseudo-random long in the specified range.

  14. def nextLongBounded(n: ⇒ Long): URIO[Random, Long]

    Permalink

    Generates a pseudo-random long between 0 (inclusive) and the specified value (exclusive).

  15. val nextPrintableChar: URIO[Random, Char]

    Permalink

    Generates a pseudo-random character from the ASCII range 33-126.

  16. def nextString(length: ⇒ Int): URIO[Random, String]

    Permalink

    Generates a pseudo-random string of the specified length.

  17. val nextUUID: URIO[Random, UUID]

    Permalink

    Generates psuedo-random universally unique identifiers.

  18. def setSeed(seed: Long): URIO[Random, Unit]

    Permalink

    Sets the seed of this random number generator.

  19. def shuffle[A](list: ⇒ List[A]): ZIO[Random, Nothing, List[A]]

    Permalink

    Randomly shuffles the specified list.

Inherited from AnyRef

Inherited from Any

Ungrouped