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

    An implementation of the Random service backed by a scala.util.Random.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def nextBoolean(implicit trace: Trace): UIO[Boolean]

    generates a pseudo-random boolean.

  14. def nextBytes(length: => Int)(implicit trace: Trace): UIO[Chunk[Byte]]

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

  15. def nextDouble(implicit trace: Trace): UIO[Double]

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

  16. def nextDoubleBetween(minInclusive: => Double, maxExclusive: => Double)(implicit trace: Trace): UIO[Double]

    Generates a pseudo-random double in the specified range.

  17. def nextFloat(implicit trace: Trace): UIO[Float]

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

  18. def nextFloatBetween(minInclusive: => Float, maxExclusive: => Float)(implicit trace: Trace): UIO[Float]

    Generates a pseudo-random float in the specified range.

  19. def nextGaussian(implicit trace: Trace): UIO[Double]

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

  20. def nextInt(implicit trace: Trace): UIO[Int]

    Generates a pseudo-random integer.

  21. def nextIntBetween(minInclusive: => Int, maxExclusive: => Int)(implicit trace: Trace): UIO[Int]

    Generates a pseudo-random integer in the specified range.

  22. def nextIntBounded(n: => Int)(implicit trace: Trace): UIO[Int]

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

  23. def nextLong(implicit trace: Trace): UIO[Long]

    Generates a pseudo-random long.

  24. def nextLongBetween(minInclusive: => Long, maxExclusive: => Long)(implicit trace: Trace): UIO[Long]

    Generates a pseudo-random long in the specified range.

  25. def nextLongBounded(n: => Long)(implicit trace: Trace): UIO[Long]

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

  26. def nextPrintableChar(implicit trace: Trace): UIO[Char]

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

  27. def nextString(length: => Int)(implicit trace: Trace): UIO[String]

    Generates a pseudo-random string of the specified length.

  28. def nextUUID(implicit trace: Trace): UIO[UUID]

    Generates psuedo-random universally unique identifiers.

  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def setSeed(seed: => Long)(implicit trace: Trace): UIO[Unit]

    Sets the seed of this random number generator.

  32. def shuffle[A](list: => List[A])(implicit trace: Trace): UIO[List[A]]

    Randomly shuffles the specified list.

  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. val tag: Tag[Random]
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. object RandomLive extends Random

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped