SplittableRandom.Split Method

Definition

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

[Android.Runtime.Register("split", "()Ljava/util/SplittableRandom;", "", ApiSince=24)]
public Java.Util.SplittableRandom? Split ();
[<Android.Runtime.Register("split", "()Ljava/util/SplittableRandom;", "", ApiSince=24)>]
member this.Split : unit -> Java.Util.SplittableRandom

Returns

the new SplittableRandom instance

Attributes

Remarks

Constructs and returns a new SplittableRandom instance that shares no mutable state with this instance. However, with very high probability, the set of values collectively generated by the two objects has the same statistical properties as if the same quantity of values were generated by a single thread using a single SplittableRandom object. Either or both of the two objects may be further split using the split() method, and the same expected statistical properties apply to the entire set of generators constructed by such recursive splitting.

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

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