Packages

c

zio.Random

RandomScala

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomScala
  2. Product
  3. Equals
  4. Random
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RandomScala(random: scala.util.Random)

Type Members

  1. trait UnsafeAPI extends Serializable
    Definition Classes
    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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def nextBoolean(implicit trace: Trace): UIO[Boolean]
    Definition Classes
    RandomScalaRandom
  11. def nextBytes(length: => Int)(implicit trace: Trace): UIO[Chunk[Byte]]
    Definition Classes
    RandomScalaRandom
  12. def nextDouble(implicit trace: Trace): UIO[Double]
    Definition Classes
    RandomScalaRandom
  13. def nextDoubleBetween(minInclusive: => Double, maxExclusive: => Double)(implicit trace: Trace): UIO[Double]
    Definition Classes
    RandomScalaRandom
  14. def nextFloat(implicit trace: Trace): UIO[Float]
    Definition Classes
    RandomScalaRandom
  15. def nextFloatBetween(minInclusive: => Float, maxExclusive: => Float)(implicit trace: Trace): UIO[Float]
    Definition Classes
    RandomScalaRandom
  16. def nextGaussian(implicit trace: Trace): UIO[Double]
    Definition Classes
    RandomScalaRandom
  17. def nextInt(implicit trace: Trace): UIO[Int]
    Definition Classes
    RandomScalaRandom
  18. def nextIntBetween(minInclusive: => Int, maxExclusive: => Int)(implicit trace: Trace): UIO[Int]
    Definition Classes
    RandomScalaRandom
  19. def nextIntBounded(n: => Int)(implicit trace: Trace): UIO[Int]
    Definition Classes
    RandomScalaRandom
  20. def nextLong(implicit trace: Trace): UIO[Long]
    Definition Classes
    RandomScalaRandom
  21. def nextLongBetween(minInclusive: => Long, maxExclusive: => Long)(implicit trace: Trace): UIO[Long]
    Definition Classes
    RandomScalaRandom
  22. def nextLongBounded(n: => Long)(implicit trace: Trace): UIO[Long]
    Definition Classes
    RandomScalaRandom
  23. def nextPrintableChar(implicit trace: Trace): UIO[Char]
    Definition Classes
    RandomScalaRandom
  24. def nextString(length: => Int)(implicit trace: Trace): UIO[String]
    Definition Classes
    RandomScalaRandom
  25. def nextUUID(implicit trace: Trace): UIO[UUID]
    Definition Classes
    RandomScalaRandom
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val random: scala.util.Random
  30. def setSeed(seed: => Long)(implicit trace: Trace): UIO[Unit]
    Definition Classes
    RandomScalaRandom
  31. def shuffle[A, Collection[+Element] <: Iterable[Element]](collection: => Collection[A])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]], trace: Trace): UIO[Collection[A]]
    Definition Classes
    RandomScalaRandom
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. val unsafe: UnsafeAPI
    Definition Classes
    RandomScalaRandom
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Product

Inherited from Equals

Inherited from Random

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped