object Random
- Alphabetic
- By Inheritance
- Random
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_]](implicit ev: Random[F]): Random[F]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaSecuritySecureRandom[F[_]](implicit arg0: Sync[F]): F[Random[F]]
- def javaSecuritySecureRandom[F[_]](n: Int)(implicit arg0: Sync[F]): F[Random[F]]
- def javaUtilConcurrentThreadLocalRandom[F[_]](implicit arg0: Sync[F]): Random[F]
- def javaUtilRandom[F[_]](random: java.util.Random)(implicit arg0: Sync[F]): F[Random[F]]
Lift Java Random to this algebra.
Lift Java Random to this algebra. Note: this implies the ability for external locations to manipulate the underlying state without referential transparency.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def scalaUtilRandom[F[_]](implicit arg0: Sync[F]): F[Random[F]]
Creates a new random number generator
- def scalaUtilRandomN[F[_]](n: Int)(implicit arg0: Sync[F]): F[Random[F]]
Creates Several Random Number Generators and equally allocates the load across those instances.
Creates Several Random Number Generators and equally allocates the load across those instances.
From the java class docs: https://docs.oracle.com/javase/8/docs/api/java/util/Random.html#java.util.Random
Instances of java.util.Random are threadsafe. However, the concurrent use of the same java.util.Random instance across threads may encounter contention and consequent poor performance. Consider instead using ThreadLocalRandom in multithreaded designs.
- def scalaUtilRandomSeedInt[F[_]](seed: Int)(implicit arg0: Sync[F]): F[Random[F]]
Creates a new random number generator using a single integer seed.
- def scalaUtilRandomSeedLong[F[_]](seed: Long)(implicit arg0: Sync[F]): F[Random[F]]
Creates a new random number generator using a single long seed.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.