object TRandom extends Serializable
- Alphabetic
- By Inheritance
- TRandom
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val any: ZLayer[TRandom, Nothing, TRandom]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val live: ZLayer[Random, Nothing, TRandom]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
nextBoolean: URSTM[TRandom, Boolean]
Generates a pseudo-random boolean inside a transaction.
-
def
nextBytes(length: ⇒ Int): URSTM[TRandom, Chunk[Byte]]
Generates a pseudo-random chunk of bytes of the specified length inside a transaction.
-
val
nextDouble: URSTM[TRandom, Double]
Generates a pseudo-random, uniformly distributed double between 0.0 and 1.0 inside a transaction.
-
def
nextDoubleBetween(minInclusive: Double, maxExclusive: Double): URSTM[TRandom, Double]
Generates a pseudo-random double in the specified range inside a transaction.
-
val
nextFloat: URSTM[TRandom, Float]
Generates a pseudo-random, uniformly distributed float between 0.0 and 1.0 inside a transaction.
-
def
nextFloatBetween(minInclusive: Float, maxExclusive: Float): URSTM[TRandom, Float]
Generates a pseudo-random float in the specified range inside a transaction.
-
val
nextGaussian: URSTM[TRandom, Double]
Generates a pseudo-random double from a normal distribution with mean 0.0 and standard deviation 1.0 inside a transaction.
-
val
nextInt: URSTM[TRandom, Int]
Generates a pseudo-random integer inside a transaction.
-
def
nextIntBetween(minInclusive: Int, maxExclusive: Int): URSTM[TRandom, Int]
Generates a pseudo-random integer in the specified range inside a transaction.
-
def
nextIntBounded(n: ⇒ Int): URSTM[TRandom, Int]
Generates a pseudo-random integer between 0 (inclusive) and the specified value (exclusive) inside a transaction.
-
val
nextLong: URSTM[TRandom, Long]
Generates a pseudo-random long inside a transaction.
-
def
nextLongBetween(minInclusive: Long, maxExclusive: Long): URSTM[TRandom, Long]
Generates a pseudo-random long in the specified range inside a transaction.
-
def
nextLongBounded(n: ⇒ Long): URSTM[TRandom, Long]
Generates a pseudo-random long between 0 (inclusive) and the specified value (exclusive) inside a transaction.
-
val
nextPrintableChar: URSTM[TRandom, Char]
Generates a pseudo-random character from the ASCII range 33-126 inside a transaction.
-
def
nextString(length: ⇒ Int): URSTM[TRandom, String]
Generates a pseudo-random string of the specified length inside a transaction.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setSeed(seed: Long): URSTM[TRandom, Unit]
Sets the seed of this random number generator inside a transaction.
-
def
shuffle[A](list: ⇒ List[A]): URSTM[TRandom, List[A]]
Randomly shuffles the specified list.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()