Packages

c

scail.commons.ops.util

RandomOps

implicit final class RandomOps extends AnyVal

Extension methods for scala.util.Random.

Source
util.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomOps
  2. AnyVal
  3. Any
Implicitly
  1. by AnyOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RandomOps(value: Random)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from RandomOps to any2stringadd[RandomOps] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (RandomOps, B)
    Implicit
    This member is added by an implicit conversion from RandomOps to ArrowAssoc[RandomOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def between(a: Int, b: Int): Int

    Returns a pseudorandom, uniformly distributed integer value between a and b, inclusive.

    Returns a pseudorandom, uniformly distributed integer value between a and b, 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 and b, inclusive

  8. def ensuring(cond: (RandomOps) ⇒ Boolean, msg: ⇒ Any): RandomOps
    Implicit
    This member is added by an implicit conversion from RandomOps to Ensuring[RandomOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (RandomOps) ⇒ Boolean): RandomOps
    Implicit
    This member is added by an implicit conversion from RandomOps to Ensuring[RandomOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): RandomOps
    Implicit
    This member is added by an implicit conversion from RandomOps to Ensuring[RandomOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): RandomOps
    Implicit
    This member is added by an implicit conversion from RandomOps to Ensuring[RandomOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from RandomOps to StringFormat[RandomOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  13. def future: Future[RandomOps]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    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()
  14. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. 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

  17. 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

  18. def option: Option[RandomOps]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, 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()
  19. def tap(f: (RandomOps) ⇒ Unit): RandomOps

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    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
  20. def toString(): String
    Definition Classes
    Any
  21. def [B](y: B): (RandomOps, B)
    Implicit
    This member is added by an implicit conversion from RandomOps to ArrowAssoc[RandomOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion AnyOps from RandomOps to AnyOps[RandomOps]

Inherited by implicit conversion any2stringadd from RandomOps to any2stringadd[RandomOps]

Inherited by implicit conversion StringFormat from RandomOps to StringFormat[RandomOps]

Inherited by implicit conversion Ensuring from RandomOps to Ensuring[RandomOps]

Inherited by implicit conversion ArrowAssoc from RandomOps to ArrowAssoc[RandomOps]

Ungrouped