implicit final class RandomOps extends AnyVal
- Alphabetic
- By Inheritance
- RandomOps
- AnyVal
- Any
- by AnyOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RandomOps(value: Random)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (RandomOps, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
between(a: Int, b: Int): Int
Returns a pseudorandom, uniformly distributed integer value between
a
andb
, inclusive.Returns a pseudorandom, uniformly distributed integer value between
a
andb
, inclusive.- a
the first value in the range, inclusive
- b
the last value in the range, inclusive
- returns
the pseudorandom, uniformly distributed integer between
a
andb
, inclusive
- def ensuring(cond: (RandomOps) ⇒ Boolean, msg: ⇒ Any): RandomOps
- def ensuring(cond: (RandomOps) ⇒ Boolean): RandomOps
- def ensuring(cond: Boolean, msg: ⇒ Any): RandomOps
- def ensuring(cond: Boolean): RandomOps
- def formatted(fmtstr: String): String
-
def
future: Future[RandomOps]
Creates an already completed
Future
containingvalue
.Creates an already completed
Future
containingvalue
.- returns
the already completed
Future
with the specified result
- Implicit
- This member is added by an implicit conversion from RandomOps to AnyOps[RandomOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
nextAlphabetic(length: Int): String
Generates a string of given length of pseudorandomly alphabetic characters, equally chosen from A-Z and a-z.
Generates a string of given length of pseudorandomly alphabetic characters, equally chosen from A-Z and a-z.
- length
the desirable length of the genrerated pseudorandom string
- returns
the pseudorandom alphabetic string of length
length
-
def
nextAlphanumeric(length: Int): String
Generates a string of given length of pseudorandomly alphanumeric characters, equally chosen from A-Z, a-z, and 0-9.
Generates a string of given length of pseudorandomly alphanumeric characters, equally chosen from A-Z, a-z, and 0-9.
- length
the desirable length of the genrerated pseudorandom string
- returns
the pseudorandom alphanumeric string of length
length
-
def
option: Option[RandomOps]
Creates an
Option
containingvalue
.Creates an
Option
containingvalue
.- returns
Some(value)
ifvalue
is notnull
,None
otherwise
- Implicit
- This member is added by an implicit conversion from RandomOps to AnyOps[RandomOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
tap(f: (RandomOps) ⇒ Unit): RandomOps
Applies side-effectul method to
value
, returningvalue
.Applies side-effectul method to
value
, returningvalue
.- f
the side-effectful method to apply to
value
- returns
value
- Implicit
- This member is added by an implicit conversion from RandomOps to AnyOps[RandomOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
-
def
toString(): String
- Definition Classes
- Any
- def →[B](y: B): (RandomOps, B)