Packages

p

zio.stm

random

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. Protected

Type Members

  1. type TRandom = Has[Service]

Value Members

  1. val nextBoolean: URSTM[TRandom, Boolean]

    Generates a pseudo-random boolean inside a transaction.

  2. def nextBytes(length: => Int): URSTM[TRandom, Chunk[Byte]]

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

  3. val nextDouble: URSTM[TRandom, Double]

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

  4. def nextDoubleBetween(minInclusive: Double, maxExclusive: Double): URSTM[TRandom, Double]

    Generates a pseudo-random double in the specified range inside a transaction.

  5. val nextFloat: URSTM[TRandom, Float]

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

  6. def nextFloatBetween(minInclusive: Float, maxExclusive: Float): URSTM[TRandom, Float]

    Generates a pseudo-random float in the specified range inside a transaction.

  7. val nextGaussian: URSTM[TRandom, Double]

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

  8. val nextInt: URSTM[TRandom, Int]

    Generates a pseudo-random integer inside a transaction.

  9. def nextIntBetween(minInclusive: Int, maxExclusive: Int): URSTM[TRandom, Int]

    Generates a pseudo-random integer in the specified range inside a transaction.

  10. def nextIntBounded(n: => Int): URSTM[TRandom, Int]

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

  11. val nextLong: URSTM[TRandom, Long]

    Generates a pseudo-random long inside a transaction.

  12. def nextLongBetween(minInclusive: Long, maxExclusive: Long): URSTM[TRandom, Long]

    Generates a pseudo-random long in the specified range inside a transaction.

  13. def nextLongBounded(n: => Long): URSTM[TRandom, Long]

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

  14. val nextPrintableChar: URSTM[TRandom, Char]

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

  15. def nextString(length: => Int): URSTM[TRandom, String]

    Generates a pseudo-random string of the specified length inside a transaction.

  16. def setSeed(seed: Long): URSTM[TRandom, Unit]

    Sets the seed of this random number generator inside a transaction.

  17. def shuffle[A](list: => List[A]): URSTM[TRandom, List[A]]

    Randomly shuffles the specified list.

  18. object TRandom extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped