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

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
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def nextBoolean(implicit trace: Trace): UIO[Boolean]
def nextBytes(length: => Int)(implicit trace: Trace): UIO[Chunk[Byte]]
def nextDouble(implicit trace: Trace): UIO[Double]
def nextDoubleBetween(minInclusive: => Double, maxExclusive: => Double)(implicit trace: Trace): UIO[Double]
def nextFloat(implicit trace: Trace): UIO[Float]
def nextFloatBetween(minInclusive: => Float, maxExclusive: => Float)(implicit trace: Trace): UIO[Float]
def nextGaussian(implicit trace: Trace): UIO[Double]
def nextInt(implicit trace: Trace): UIO[Int]
def nextIntBetween(minInclusive: => Int, maxExclusive: => Int)(implicit trace: Trace): UIO[Int]
def nextIntBounded(n: => Int)(implicit trace: Trace): UIO[Int]
def nextLong(implicit trace: Trace): UIO[Long]
def nextLongBetween(minInclusive: => Long, maxExclusive: => Long)(implicit trace: Trace): UIO[Long]
def nextLongBounded(n: => Long)(implicit trace: Trace): UIO[Long]
def nextPrintableChar(implicit trace: Trace): UIO[Char]
def nextString(length: => Int)(implicit trace: Trace): UIO[String]
def nextUUID(implicit trace: Trace): UIO[UUID]
def setSeed(seed: => Long)(implicit trace: Trace): UIO[Unit]
def shuffle[A, Collection <: (Iterable)](collection: => Collection[A])(implicit bf: BuildFrom[Collection[A], A, Collection[A]], trace: Trace): UIO[Collection[A]]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val unsafe: UnsafeAPI