Sdílet prostřednictvím


RandomGeneratorFactory.Create Method

Definition

Overloads

Create()

Create an instance of RandomGenerator based on algorithm chosen.

Create(Byte[])

Create an instance of RandomGenerator based on algorithm chosen providing a starting byte[] seed.

Create(Int64)

Create an instance of RandomGenerator based on algorithm chosen providing a starting long seed.

Create()

Create an instance of RandomGenerator based on algorithm chosen.

[Android.Runtime.Register("create", "()Ljava/util/random/RandomGenerator;", "", ApiSince=35)]
public Java.Lang.Object? Create ();
[<Android.Runtime.Register("create", "()Ljava/util/random/RandomGenerator;", "", ApiSince=35)>]
member this.Create : unit -> Java.Lang.Object

Returns

new in instance of RandomGenerator.

Attributes

Remarks

Create an instance of RandomGenerator based on algorithm chosen.

Java documentation for java.util.random.RandomGeneratorFactory.create().

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

Create(Byte[])

Create an instance of RandomGenerator based on algorithm chosen providing a starting byte[] seed.

[Android.Runtime.Register("create", "([B)Ljava/util/random/RandomGenerator;", "", ApiSince=35)]
public Java.Lang.Object? Create (byte[]? seed);
[<Android.Runtime.Register("create", "([B)Ljava/util/random/RandomGenerator;", "", ApiSince=35)>]
member this.Create : byte[] -> Java.Lang.Object

Parameters

seed
Byte[]

byte array random seed value.

Returns

new in instance of RandomGenerator.

Attributes

Remarks

Create an instance of RandomGenerator based on algorithm chosen providing a starting byte[] seed. If byte[] seed is not supported by an algorithm then the no argument form of create is used.

Java documentation for java.util.random.RandomGeneratorFactory.create(byte[]).

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

Create(Int64)

Create an instance of RandomGenerator based on algorithm chosen providing a starting long seed.

[Android.Runtime.Register("create", "(J)Ljava/util/random/RandomGenerator;", "", ApiSince=35)]
public Java.Lang.Object? Create (long seed);
[<Android.Runtime.Register("create", "(J)Ljava/util/random/RandomGenerator;", "", ApiSince=35)>]
member this.Create : int64 -> Java.Lang.Object

Parameters

seed
Int64

long random seed value.

Returns

new in instance of RandomGenerator.

Attributes

Remarks

Create an instance of RandomGenerator based on algorithm chosen providing a starting long seed. If long seed is not supported by an algorithm then the no argument form of create is used.

Java documentation for java.util.random.RandomGeneratorFactory.create(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