Clears the buffer of booleans.
Clears the buffer of bytes.
Clears the buffer of characters.
Clears the buffer of doubles.
Clears the buffer of floats.
Clears the buffer of integers.
Clears the buffer of longs.
Clears the buffer of strings.
Clears the buffer of UUIDs.
Feeds the buffer with specified sequence of booleans.
Feeds the buffer with specified sequence of chunks of bytes.
Feeds the buffer with specified sequence of characters.
Feeds the buffer with specified sequence of doubles.
Feeds the buffer with specified sequence of floats.
Feeds the buffer with specified sequence of integers.
Feeds the buffer with specified sequence of longs.
Feeds the buffer with specified sequence of strings.
Feeds the buffer with specified sequence of UUIDs.
Gets the seed of this TestRandom
.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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).
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.
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.
Takes a UUID from the buffer if one exists or else generates a pseudo-random UUID.
Takes a UUID from the buffer if one exists or else generates a pseudo-random UUID.
Saves the TestRandom
's current state in an effect which, when run,
will restore the TestRandom
state to the saved state.
Saves the TestRandom
's current state in an effect which, when run,
will restore the TestRandom
state to the saved state.
Sets the seed of this TestRandom
to the specified value.
Randomly shuffles the specified list.
Randomly shuffles the specified list.
Adapted from @gzmo work in Scala.js (https://github.com/scala-js/scala-js/pull/780)