Package

zio.stm

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 TRandom = Has[Service]

    Permalink

Value Members

  1. object TRandom extends Serializable

    Permalink
  2. val nextBoolean: URSTM[TRandom, Boolean]

    Permalink

    Generates a pseudo-random boolean inside a transaction.

  3. def nextBytes(length: ⇒ Int): URSTM[TRandom, Chunk[Byte]]

    Permalink

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

  4. val nextDouble: URSTM[TRandom, Double]

    Permalink

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

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

    Permalink

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

  6. val nextFloat: URSTM[TRandom, Float]

    Permalink

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

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

    Permalink

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

  8. val nextGaussian: URSTM[TRandom, Double]

    Permalink

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

  9. val nextInt: URSTM[TRandom, Int]

    Permalink

    Generates a pseudo-random integer inside a transaction.

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

    Permalink

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

  11. def nextIntBounded(n: ⇒ Int): URSTM[TRandom, Int]

    Permalink

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

  12. val nextLong: URSTM[TRandom, Long]

    Permalink

    Generates a pseudo-random long inside a transaction.

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

    Permalink

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

  14. def nextLongBounded(n: ⇒ Long): URSTM[TRandom, Long]

    Permalink

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

  15. val nextPrintableChar: URSTM[TRandom, Char]

    Permalink

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

  16. def nextString(length: ⇒ Int): URSTM[TRandom, String]

    Permalink

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

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

    Permalink

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

  18. def shuffle[A](list: ⇒ List[A]): URSTM[TRandom, List[A]]

    Permalink

    Randomly shuffles the specified list.

Inherited from AnyRef

Inherited from Any

Ungrouped