SplittableRandom (Java Platform SE 8 ) (original) (raw)

Modifier and Type

Method

Description

[DoubleStream](../../java/util/stream/DoubleStream.html "interface in java.util.stream")

[doubles](../../java/util/SplittableRandom.html#doubles--)()

Returns an effectively unlimited stream of pseudorandom double values from this generator and/or one split from it; each value is between zero (inclusive) and one (exclusive).

[DoubleStream](../../java/util/stream/DoubleStream.html "interface in java.util.stream")

[doubles](../../java/util/SplittableRandom.html#doubles-double-double-)(double randomNumberOrigin, double randomNumberBound)

Returns an effectively unlimited stream of pseudorandom double values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).

[DoubleStream](../../java/util/stream/DoubleStream.html "interface in java.util.stream")

[doubles](../../java/util/SplittableRandom.html#doubles-long-)(long streamSize)

Returns a stream producing the given streamSize number of pseudorandom double values from this generator and/or one split from it; each value is between zero (inclusive) and one (exclusive).

[DoubleStream](../../java/util/stream/DoubleStream.html "interface in java.util.stream")

[doubles](../../java/util/SplittableRandom.html#doubles-long-double-double-)(long streamSize, double randomNumberOrigin, double randomNumberBound)

Returns a stream producing the given streamSize number of pseudorandom double values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).

[IntStream](../../java/util/stream/IntStream.html "interface in java.util.stream")

[ints](../../java/util/SplittableRandom.html#ints--)()

Returns an effectively unlimited stream of pseudorandom int values from this generator and/or one split from it.

[IntStream](../../java/util/stream/IntStream.html "interface in java.util.stream")

[ints](../../java/util/SplittableRandom.html#ints-int-int-)(int randomNumberOrigin, int randomNumberBound)

Returns an effectively unlimited stream of pseudorandom int values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).

[IntStream](../../java/util/stream/IntStream.html "interface in java.util.stream")

[ints](../../java/util/SplittableRandom.html#ints-long-)(long streamSize)

Returns a stream producing the given streamSize number of pseudorandom int values from this generator and/or one split from it.

[IntStream](../../java/util/stream/IntStream.html "interface in java.util.stream")

[ints](../../java/util/SplittableRandom.html#ints-long-int-int-)(long streamSize, int randomNumberOrigin, int randomNumberBound)

Returns a stream producing the given streamSize number of pseudorandom int values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).

[LongStream](../../java/util/stream/LongStream.html "interface in java.util.stream")

[longs](../../java/util/SplittableRandom.html#longs--)()

Returns an effectively unlimited stream of pseudorandom long values from this generator and/or one split from it.

[LongStream](../../java/util/stream/LongStream.html "interface in java.util.stream")

[longs](../../java/util/SplittableRandom.html#longs-long-)(long streamSize)

Returns a stream producing the given streamSize number of pseudorandom long values from this generator and/or one split from it.

[LongStream](../../java/util/stream/LongStream.html "interface in java.util.stream")

[longs](../../java/util/SplittableRandom.html#longs-long-long-)(long randomNumberOrigin, long randomNumberBound)

Returns an effectively unlimited stream of pseudorandom long values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).

[LongStream](../../java/util/stream/LongStream.html "interface in java.util.stream")

[longs](../../java/util/SplittableRandom.html#longs-long-long-long-)(long streamSize, long randomNumberOrigin, long randomNumberBound)

Returns a stream producing the given streamSize number of pseudorandom long values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).

boolean

[nextBoolean](../../java/util/SplittableRandom.html#nextBoolean--)()

Returns a pseudorandom boolean value.

double

[nextDouble](../../java/util/SplittableRandom.html#nextDouble--)()

Returns a pseudorandom double value between zero (inclusive) and one (exclusive).

double

[nextDouble](../../java/util/SplittableRandom.html#nextDouble-double-)(double bound)

Returns a pseudorandom double value between 0.0 (inclusive) and the specified bound (exclusive).

double

[nextDouble](../../java/util/SplittableRandom.html#nextDouble-double-double-)(double origin, double bound)

Returns a pseudorandom double value between the specified origin (inclusive) and bound (exclusive).

int

[nextInt](../../java/util/SplittableRandom.html#nextInt--)()

Returns a pseudorandom int value.

int

[nextInt](../../java/util/SplittableRandom.html#nextInt-int-)(int bound)

Returns a pseudorandom int value between zero (inclusive) and the specified bound (exclusive).

int

[nextInt](../../java/util/SplittableRandom.html#nextInt-int-int-)(int origin, int bound)

Returns a pseudorandom int value between the specified origin (inclusive) and the specified bound (exclusive).

long

[nextLong](../../java/util/SplittableRandom.html#nextLong--)()

Returns a pseudorandom long value.

long

[nextLong](../../java/util/SplittableRandom.html#nextLong-long-)(long bound)

Returns a pseudorandom long value between zero (inclusive) and the specified bound (exclusive).

long

[nextLong](../../java/util/SplittableRandom.html#nextLong-long-long-)(long origin, long bound)

Returns a pseudorandom long value between the specified origin (inclusive) and the specified bound (exclusive).

[SplittableRandom](../../java/util/SplittableRandom.html "class in java.util")

[split](../../java/util/SplittableRandom.html#split--)()

Constructs and returns a new SplittableRandom instance that shares no mutable state with this instance.