Random

zio.Random
See theRandom companion object
trait Random extends Serializable

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object RandomLive.type
Self type

Members list

Concise view

Type members

Classlikes

trait UnsafeAPI

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Abstract 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]]

Concrete methods