Object/Trait

zio

Random

Related Docs: trait Random | package zio

Permalink

object Random extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Random
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object RandomLive extends Random

    Permalink
  5. val any: ZLayer[Has[Random], Nothing, Has[Random]]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val live: Layer[Nothing, Has[Random]]

    Permalink
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. val nextBoolean: URIO[Has[Random], Boolean]

    Permalink

    generates a pseudo-random boolean.

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

    Permalink

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

  18. val nextDouble: URIO[Has[Random], Double]

    Permalink

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

  19. def nextDoubleBetween(minInclusive: ⇒ Double, maxExclusive: ⇒ Double): URIO[Has[Random], Double]

    Permalink

    Generates a pseudo-random double in the specified range.

  20. val nextFloat: URIO[Has[Random], Float]

    Permalink

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

  21. def nextFloatBetween(minInclusive: ⇒ Float, maxExclusive: ⇒ Float): URIO[Has[Random], Float]

    Permalink

    Generates a pseudo-random float in the specified range.

  22. val nextGaussian: URIO[Has[Random], Double]

    Permalink

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

  23. val nextInt: URIO[Has[Random], Int]

    Permalink

    Generates a pseudo-random integer.

  24. def nextIntBetween(minInclusive: ⇒ Int, maxExclusive: ⇒ Int): URIO[Has[Random], Int]

    Permalink

    Generates a pseudo-random integer in the specified range.

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

    Permalink

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

  26. val nextLong: URIO[Has[Random], Long]

    Permalink

    Generates a pseudo-random long.

  27. def nextLongBetween(minInclusive: ⇒ Long, maxExclusive: ⇒ Long): URIO[Has[Random], Long]

    Permalink

    Generates a pseudo-random long in the specified range.

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

    Permalink

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

  29. val nextPrintableChar: URIO[Has[Random], Char]

    Permalink

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

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

    Permalink

    Generates a pseudo-random string of the specified length.

  31. val nextUUID: URIO[Has[Random], UUID]

    Permalink

    Generates psuedo-random universally unique identifiers.

  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def setSeed(seed: ⇒ Long): URIO[Has[Random], Unit]

    Permalink

    Sets the seed of this random number generator.

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

    Permalink

    Randomly shuffles the specified list.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped