CPRand
Provides convenient functions for random number generation and usage.
Attributes
- See also
-
Random
- Source
- CPRand.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CPRand.type
Members list
Value members
Concrete methods
Gets random number in given range.
Gets random number in given range.
Value parameters
- a
-
Inclusive start of the range.
- b
-
Exclusive end of the range.
Attributes
- Source
- CPRand.scala
Gets random number in given range.
Gets random number in given range.
Value parameters
- a
-
Inclusive start of the range.
- b
-
Exclusive end of the range.
Attributes
- Source
- CPRand.scala
Gets random number in given range.
Gets random number in given range.
Value parameters
- a
-
Inclusive start of the range.
- b
-
Exclusive end of the range.
Attributes
- Source
- CPRand.scala
Gets random number in given range.
Gets random number in given range.
Value parameters
- a
-
Inclusive start of the range.
- b
-
Exclusive end of the range.
Attributes
- Source
- CPRand.scala
Random boolean value.
Creates new globally unique 16-bytes type 4 UUID.
Creates new 6-bytes UUID. This UUID is NOT globally unique.
Gets a random green color from the list of CPColor.CS_X11_GREENS.
Gets random value from the given sequence. It's equivalent to:
Gets random value from the given sequence. It's equivalent to:
seq(RND.nextInt(seq.size))
Value parameters
- seq
-
Sequence to get the random value from.
Attributes
- Source
- CPRand.scala
Geta a random digit.
Gets the next pseudorandom, uniformly distributed double
value between 0.0
and 1.0
.
Gets the next pseudorandom, uniformly distributed double
value between 0.0
and 1.0
.
Attributes
- Source
- CPRand.scala
Gets the next pseudorandom, uniformly distributed float
value between 0.0
and 1.0
.
Gets the next pseudorandom, uniformly distributed float
value between 0.0
and 1.0
.
Attributes
- Source
- CPRand.scala
Gets random integer in the given range.
Gets random integer in the given range.
Value parameters
- from
-
Inclusive range from value.
- to
-
Inclusive range to value.
Attributes
- Source
- CPRand.scala
Gets random integer.
Gets random integer in the given range.
Gets random integer in the given range.
Value parameters
- from
-
Inclusive range from value.
- to
-
Inclusive range to value.
Attributes
- Source
- CPRand.scala
Gets random integer in the given range.
Gets random integer in the given range.
Value parameters
- from
-
Inclusive range from value.
- to
-
Inclusive range to value.
Attributes
- Source
- CPRand.scala
Gets a random uppercase or lowercase letter.
Gets a random lowercase letter.
Gets random long in the given range.
Gets random long in the given range.
Value parameters
- from
-
Inclusive range from value.
- to
-
Inclusive range to value.
Attributes
- Source
- CPRand.scala
Gets random long in the given range.
Gets random long in the given range.
Value parameters
- from
-
Inclusive range from value.
- to
-
Inclusive range to value.
Attributes
- Source
- CPRand.scala
Gets a random symbol from the list of ~!@#$%^&*()_+-=[]{}';:\",.<>/?
.
Gets a random symbol from the list of ~!@#$%^&*()_+-=[]{}';:\",.<>/?
.
Attributes
- Source
- CPRand.scala
Gets a random system color from the list of CPColor.C_SYS_GROUP.
Gets a random uppercase letter.
Gets a random blue color from the list of CPColor.CS_X11_BLUES.
Gets a random brown color from the list of CPColor.CS_X11_BROWNS.
Gets random xterm color from the list of CPColor.CS_X11_ALL.
Gets a random cyan color from the list of CPColor.CS_X11_CYANS.
Gets a random gray color from the list of CPColor.CS_X11_GRAYS.
Gets a random orange color from the list of CPColor.CS_X11_ORANGES.
Gets a random pink color from the list of CPColor.CS_X11_PINKS.
Gets a random purple color from the list of CPColor.CS_X11_PURPLES.
Gets a random red color from the list of CPColor.CS_X11_REDS.
Gets a random white color from the list of CPColor.CS_X11_WHITES.
Gets a random yellow color from the list of CPColor.CS_X11_YELLOWS.
Gets random xterm color from the list of CPColor.CS_XTERM_ALL.