class
ReactRandom extends AnyRef
Instance Constructors
-
new
ReactRandom(seed: Long)
-
new
ReactRandom(jucRandom: Random)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
boolean(): Boolean
-
def
clone(): AnyRef
-
def
close(): Unit
-
def
double(): Double
-
def
emit(): Unit
-
def
ensuring(cond: (ReactRandom) ⇒ Boolean, msg: ⇒ Any): ReactRandom
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ReactRandom
-
def
ensuring(cond: Boolean): ReactRandom
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
float(): Float
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
int(n: Int): Int
-
def
int(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
long(n: Int): Long
-
def
long(): Long
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
string(length: Int): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
Shadowed Implicit Value Members
-
val
self: Any
-
val
self: Any
Inherited from Any
Inherited by implicit conversion any2stringadd from
ReactRandom to StringAdd
Inherited by implicit conversion any2stringfmt from
ReactRandom to StringFormat
Reactive random value.
It can be used as a regular random generator that produces random values:
Or, as a reactive random value, by subscribing to events produced when
emit
is called:Above,
evens
contains random values.