Packages

c

java.util

Random

class Random extends Serializable

Ported from Apache Harmony and described by Donald E. Knuth in The Art of Computer Programming, Volume 2: Seminumerical Algorithms, section 3.2.1.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Random
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Random()
  2. new Random(seed_in: Long)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def doubles(streamSize: Long, randomNumberOrigin: Double, randomNumberBound: Double): DoubleStream
  7. def doubles(streamSize: Long): DoubleStream
  8. def doubles(randomNumberOrigin: Double, randomNumberBound: Double): DoubleStream
  9. def doubles(): DoubleStream
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def ints(streamSize: Long, randomNumberOrigin: Int, randomNumberBound: Int): IntStream
  16. def ints(streamSize: Long): IntStream
  17. def ints(randomNumberOrigin: Int, randomNumberBound: Int): IntStream
  18. def ints(): IntStream
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def longs(streamSize: Long, randomNumberOrigin: Long, randomNumberBound: Long): LongStream
  21. def longs(streamSize: Long): LongStream
  22. def longs(randomNumberOrigin: Long, randomNumberBound: Long): LongStream
  23. def longs(): LongStream
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def next(bits: Int): Int
    Attributes
    protected
  26. def nextBoolean(): Boolean
  27. def nextBytes(bytes: Array[Byte]): Unit
  28. def nextDouble(): Double
  29. def nextFloat(): Float
  30. def nextGaussian(): Double
  31. def nextInt(n: Int): Int
  32. def nextInt(): Int
  33. def nextLong(): Long
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final val randomStreamCharacteristics: 17728
  37. def setSeed(seed_in: Long): Unit
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped