RandomScala

zio.Random.RandomScala
final case class RandomScala(random: Random) extends Random

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

Attributes

Source
Random.scala
Graph
Supertypes
trait Product
trait Equals
trait Random
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

trait UnsafeAPI extends Serializable

Attributes

Inherited from:
Random
Source
Random.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def nextBoolean(implicit trace: Trace): UIO[Boolean]

Attributes

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

Attributes

Source
Random.scala
def nextDouble(implicit trace: Trace): UIO[Double]

Attributes

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

Attributes

Source
Random.scala
def nextFloat(implicit trace: Trace): UIO[Float]

Attributes

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

Attributes

Source
Random.scala
def nextGaussian(implicit trace: Trace): UIO[Double]

Attributes

Source
Random.scala
def nextInt(implicit trace: Trace): UIO[Int]

Attributes

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

Attributes

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

Attributes

Source
Random.scala
def nextLong(implicit trace: Trace): UIO[Long]

Attributes

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

Attributes

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

Attributes

Source
Random.scala
def nextPrintableChar(implicit trace: Trace): UIO[Char]

Attributes

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

Attributes

Source
Random.scala
def nextUUID(implicit trace: Trace): UIO[UUID]

Attributes

Source
Random.scala
def setSeed(seed: => Long)(implicit trace: Trace): UIO[Unit]

Attributes

Source
Random.scala
def shuffle[A, Collection <: (Iterable)](collection: => Collection[A])(implicit bf: BuildFrom[Collection[A], A, Collection[A]], trace: Trace): UIO[Collection[A]]

Attributes

Source
Random.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val unsafe: UnsafeAPI

Attributes

Source
Random.scala