Packages

object Random extends Serializable

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

Type Members

  1. final case class RandomScala(random: scala.util.Random) extends Random with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val RandomLive: Random
  5. val any: ZLayer[Has[Random], Nothing, Has[Random]]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val live: Layer[Nothing, Has[Random]]
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def nextBoolean(implicit trace: ZTraceElement): URIO[Has[Random], Boolean]

    generates a pseudo-random boolean.

  17. def nextBytes(length: => Int)(implicit trace: ZTraceElement): ZIO[Has[Random], Nothing, Chunk[Byte]]

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

  18. def nextDouble(implicit trace: ZTraceElement): URIO[Has[Random], Double]

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

  19. def nextDoubleBetween(minInclusive: => Double, maxExclusive: => Double)(implicit trace: ZTraceElement): URIO[Has[Random], Double]

    Generates a pseudo-random double in the specified range.

  20. def nextFloat(implicit trace: ZTraceElement): URIO[Has[Random], Float]

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

  21. def nextFloatBetween(minInclusive: => Float, maxExclusive: => Float)(implicit trace: ZTraceElement): URIO[Has[Random], Float]

    Generates a pseudo-random float in the specified range.

  22. def nextGaussian(implicit trace: ZTraceElement): URIO[Has[Random], Double]

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

  23. def nextInt(implicit trace: ZTraceElement): URIO[Has[Random], Int]

    Generates a pseudo-random integer.

  24. def nextIntBetween(minInclusive: => Int, maxExclusive: => Int)(implicit trace: ZTraceElement): URIO[Has[Random], Int]

    Generates a pseudo-random integer in the specified range.

  25. def nextIntBounded(n: => Int)(implicit trace: ZTraceElement): URIO[Has[Random], Int]

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

  26. def nextLong(implicit trace: ZTraceElement): URIO[Has[Random], Long]

    Generates a pseudo-random long.

  27. def nextLongBetween(minInclusive: => Long, maxExclusive: => Long)(implicit trace: ZTraceElement): URIO[Has[Random], Long]

    Generates a pseudo-random long in the specified range.

  28. def nextLongBounded(n: => Long)(implicit trace: ZTraceElement): URIO[Has[Random], Long]

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

  29. def nextPrintableChar(implicit trace: ZTraceElement): URIO[Has[Random], Char]

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

  30. def nextString(length: => Int)(implicit trace: ZTraceElement): URIO[Has[Random], String]

    Generates a pseudo-random string of the specified length.

  31. def nextUUID(implicit trace: ZTraceElement): URIO[Has[Random], UUID]

    Generates psuedo-random universally unique identifiers.

  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. val scalaRandom: ZLayer[Has[scala.util.Random], Nothing, Has[Random]]

    Constructs a Random service from a scala.util.Random.

  35. def setSeed(seed: => Long)(implicit trace: ZTraceElement): URIO[Has[Random], Unit]

    Sets the seed of this random number generator.

  36. def shuffle[A](list: => List[A])(implicit trace: ZTraceElement): ZIO[Has[Random], Nothing, List[A]]

    Randomly shuffles the specified list.

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped