object Random extends Serializable
- Alphabetic
- By Inheritance
- Random
- 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[Has[Random], Nothing, Has[Random]]
-
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: Layer[Nothing, Has[Random]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
nextBoolean: URIO[Has[Random], Boolean]
generates a pseudo-random boolean.
-
def
nextBytes(length: ⇒ Int): ZIO[Has[Random], Nothing, Chunk[Byte]]
Generates a pseudo-random chunk of bytes of the specified length.
-
val
nextDouble: URIO[Has[Random], Double]
Generates a pseudo-random, uniformly distributed double between 0.0 and 1.0.
-
def
nextDoubleBetween(minInclusive: Double, maxExclusive: Double): URIO[Has[Random], Double]
Generates a pseudo-random double in the specified range.
-
val
nextFloat: URIO[Has[Random], Float]
Generates a pseudo-random, uniformly distributed float between 0.0 and 1.0.
-
def
nextFloatBetween(minInclusive: Float, maxExclusive: Float): URIO[Has[Random], Float]
Generates a pseudo-random float in the specified range.
-
val
nextGaussian: URIO[Has[Random], Double]
Generates a pseudo-random double from a normal distribution with mean 0.0 and standard deviation 1.0.
-
val
nextInt: URIO[Has[Random], Int]
Generates a pseudo-random integer.
-
def
nextIntBetween(minInclusive: Int, maxExclusive: Int): URIO[Has[Random], Int]
Generates a pseudo-random integer in the specified range.
-
def
nextIntBounded(n: ⇒ Int): URIO[Has[Random], Int]
Generates a pseudo-random integer between 0 (inclusive) and the specified value (exclusive).
-
val
nextLong: URIO[Has[Random], Long]
Generates a pseudo-random long.
-
def
nextLongBetween(minInclusive: Long, maxExclusive: Long): URIO[Has[Random], Long]
Generates a pseudo-random long in the specified range.
-
def
nextLongBounded(n: ⇒ Long): URIO[Has[Random], Long]
Generates a pseudo-random long between 0 (inclusive) and the specified value (exclusive).
-
val
nextPrintableChar: URIO[Has[Random], Char]
Generates a pseudo-random character from the ASCII range 33-126.
-
def
nextString(length: ⇒ Int): URIO[Has[Random], String]
Generates a pseudo-random string of the specified length.
-
val
nextUUID: URIO[Has[Random], UUID]
Generates psuedo-random universally unique identifiers.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setSeed(seed: Long): URIO[Has[Random], Unit]
Sets the seed of this random number generator.
-
def
shuffle[A](list: ⇒ List[A]): ZIO[Has[Random], Nothing, 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()
- object RandomLive extends Random