다음을 통해 공유


SplittableRandom Constructors

Definition

Overloads

SplittableRandom()

Creates a new SplittableRandom instance that is likely to generate sequences of values that are statistically independent of those of any other instances in the current program; and may, and typically does, vary across program invocations.

SplittableRandom(Int64)

Creates a new SplittableRandom instance using the specified initial seed.

SplittableRandom()

Creates a new SplittableRandom instance that is likely to generate sequences of values that are statistically independent of those of any other instances in the current program; and may, and typically does, vary across program invocations.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public SplittableRandom ();
Attributes

Remarks

Creates a new SplittableRandom instance that is likely to generate sequences of values that are statistically independent of those of any other instances in the current program; and may, and typically does, vary across program invocations.

Java documentation for java.util.SplittableRandom.SplittableRandom().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SplittableRandom(Int64)

Creates a new SplittableRandom instance using the specified initial seed.

[Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=24)]
public SplittableRandom (long seed);
[<Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=24)>]
new Java.Util.SplittableRandom : int64 -> Java.Util.SplittableRandom

Parameters

seed
Int64

the initial seed

Attributes

Remarks

Creates a new SplittableRandom instance using the specified initial seed. SplittableRandom instances created with the same seed in the same program generate identical sequences of values.

Java documentation for java.util.SplittableRandom.SplittableRandom(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to