final case class Test(randomState: Ref[Data], bufferState: Ref[Buffer]) extends Random with TestRandom with Product with Serializable
Adapted from @gzmo work in Scala.js (https://github.com/scala-js/scala-js/pull/780)
- Alphabetic
- By Inheritance
- Test
- Product
- Equals
- TestRandom
- Restorable
- Random
- Serializable
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bufferState: Ref[Buffer]
- val clearBooleans: UIO[Unit]
Clears the buffer of booleans.
Clears the buffer of booleans.
- Definition Classes
- Test → TestRandom
- val clearBytes: UIO[Unit]
Clears the buffer of bytes.
Clears the buffer of bytes.
- Definition Classes
- Test → TestRandom
- val clearChars: UIO[Unit]
Clears the buffer of characters.
Clears the buffer of characters.
- Definition Classes
- Test → TestRandom
- val clearDoubles: UIO[Unit]
Clears the buffer of doubles.
Clears the buffer of doubles.
- Definition Classes
- Test → TestRandom
- val clearFloats: UIO[Unit]
Clears the buffer of floats.
Clears the buffer of floats.
- Definition Classes
- Test → TestRandom
- val clearInts: UIO[Unit]
Clears the buffer of integers.
Clears the buffer of integers.
- Definition Classes
- Test → TestRandom
- val clearLongs: UIO[Unit]
Clears the buffer of longs.
Clears the buffer of longs.
- Definition Classes
- Test → TestRandom
- val clearStrings: UIO[Unit]
Clears the buffer of strings.
Clears the buffer of strings.
- Definition Classes
- Test → TestRandom
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def feedBooleans(booleans: Boolean*): UIO[Unit]
Feeds the buffer with specified sequence of booleans.
Feeds the buffer with specified sequence of booleans. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedBytes(bytes: Chunk[Byte]*): UIO[Unit]
Feeds the buffer with specified sequence of chunks of bytes.
Feeds the buffer with specified sequence of chunks of bytes. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedChars(chars: Char*): UIO[Unit]
Feeds the buffer with specified sequence of characters.
Feeds the buffer with specified sequence of characters. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedDoubles(doubles: Double*): UIO[Unit]
Feeds the buffer with specified sequence of doubles.
Feeds the buffer with specified sequence of doubles. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedFloats(floats: Float*): UIO[Unit]
Feeds the buffer with specified sequence of floats.
Feeds the buffer with specified sequence of floats. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedInts(ints: Int*): UIO[Unit]
Feeds the buffer with specified sequence of integers.
Feeds the buffer with specified sequence of integers. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedLongs(longs: Long*): UIO[Unit]
Feeds the buffer with specified sequence of longs.
Feeds the buffer with specified sequence of longs. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def feedStrings(strings: String*): UIO[Unit]
Feeds the buffer with specified sequence of strings.
Feeds the buffer with specified sequence of strings. The first value in the sequence will be the first to be taken. These values will be taken before any values that were previously in the buffer.
- Definition Classes
- Test → TestRandom
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val getSeed: UIO[Long]
Gets the seed of this
TestRandom.Gets the seed of this
TestRandom.- Definition Classes
- Test → TestRandom
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val nextBoolean: UIO[Boolean]
Takes a boolean from the buffer if one exists or else generates a pseudo-random boolean.
Takes a boolean from the buffer if one exists or else generates a pseudo-random boolean.
- Definition Classes
- Test → Random
- def nextBytes(length: Int): UIO[Chunk[Byte]]
Takes a chunk of bytes from the buffer if one exists or else generates a pseudo-random chunk of bytes of the specified length.
Takes a chunk of bytes from the buffer if one exists or else generates a pseudo-random chunk of bytes of the specified length.
- Definition Classes
- Test → Random
- lazy val nextDouble: UIO[Double]
Takes a double from the buffer if one exists or else generates a pseudo-random, uniformly distributed double between 0.0 and 1.0.
Takes a double from the buffer if one exists or else generates a pseudo-random, uniformly distributed double between 0.0 and 1.0.
- Definition Classes
- Test → Random
- def nextDoubleBetween(minInclusive: Double, maxExclusive: Double): UIO[Double]
Takes a double from the buffer if one exists or else generates a pseudo-random double in the specified range.
Takes a double from the buffer if one exists or else generates a pseudo-random double in the specified range.
- Definition Classes
- Test → Random
- lazy val nextFloat: UIO[Float]
Takes a float from the buffer if one exists or else generates a pseudo-random, uniformly distributed float between 0.0 and 1.0.
Takes a float from the buffer if one exists or else generates a pseudo-random, uniformly distributed float between 0.0 and 1.0.
- Definition Classes
- Test → Random
- def nextFloatBetween(minInclusive: Float, maxExclusive: Float): UIO[Float]
Takes a float from the buffer if one exists or else generates a pseudo-random float in the specified range.
Takes a float from the buffer if one exists or else generates a pseudo-random float in the specified range.
- Definition Classes
- Test → Random
- lazy val nextGaussian: UIO[Double]
Takes a double from the buffer if one exists or else generates a pseudo-random double from a normal distribution with mean 0.0 and standard deviation 1.0.
Takes a double from the buffer if one exists or else generates a pseudo-random double from a normal distribution with mean 0.0 and standard deviation 1.0.
- Definition Classes
- Test → Random
- lazy val nextInt: UIO[Int]
Takes an integer from the buffer if one exists or else generates a pseudo-random integer.
Takes an integer from the buffer if one exists or else generates a pseudo-random integer.
- Definition Classes
- Test → Random
- def nextIntBetween(minInclusive: Int, maxExclusive: Int): UIO[Int]
Takes an integer from the buffer if one exists or else generates a pseudo-random integer in the specified range.
Takes an integer from the buffer if one exists or else generates a pseudo-random integer in the specified range.
- Definition Classes
- Test → Random
- def nextIntBounded(n: Int): UIO[Int]
Takes an integer from the buffer if one exists or else generates a pseudo-random integer between 0 (inclusive) and the specified value (exclusive).
Takes an integer from the buffer if one exists or else generates a pseudo-random integer between 0 (inclusive) and the specified value (exclusive).
- Definition Classes
- Test → Random
- lazy val nextLong: UIO[Long]
Takes a long from the buffer if one exists or else generates a pseudo-random long.
Takes a long from the buffer if one exists or else generates a pseudo-random long.
- Definition Classes
- Test → Random
- def nextLongBetween(minInclusive: Long, maxExclusive: Long): UIO[Long]
Takes a long from the buffer if one exists or else generates a pseudo-random long in the specified range.
Takes a long from the buffer if one exists or else generates a pseudo-random long in the specified range.
- Definition Classes
- Test → Random
- def nextLongBounded(n: Long): UIO[Long]
Takes a long from the buffer if one exists or else generates a pseudo-random long between 0 (inclusive) and the specified value (exclusive).
Takes a long from the buffer if one exists or else generates a pseudo-random long between 0 (inclusive) and the specified value (exclusive).
- Definition Classes
- Test → Random
- lazy val nextPrintableChar: UIO[Char]
Takes a character from the buffer if one exists or else generates a pseudo-random character from the ASCII range 33-126.
Takes a character from the buffer if one exists or else generates a pseudo-random character from the ASCII range 33-126.
- Definition Classes
- Test → Random
- def nextString(length: Int): UIO[String]
Takes a string from the buffer if one exists or else generates a pseudo-random string of the specified length.
Takes a string from the buffer if one exists or else generates a pseudo-random string of the specified length.
- Definition Classes
- Test → Random
- def nextUUID: UIO[UUID]
- Definition Classes
- Random
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val randomState: Ref[Data]
- val save: UIO[UIO[Unit]]
Saves the
TestRandom's current state in an effect which, when run, will restore theTestRandomstate to the saved state.Saves the
TestRandom's current state in an effect which, when run, will restore theTestRandomstate to the saved state.- Definition Classes
- Test → Restorable
- def setSeed(seed: Long): UIO[Unit]
Sets the seed of this
TestRandomto the specified value.Sets the seed of this
TestRandomto the specified value.- Definition Classes
- Test → TestRandom → Random
- def shuffle[A, Collection[+Element] <: Iterable[Element]](list: Collection[A])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): UIO[Collection[A]]
Randomly shuffles the specified list.
Randomly shuffles the specified list.
- Definition Classes
- Test → Random
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()