Język

SplittableRandom.NextBytes(Byte[]) Method

Definition

Fills a user-supplied byte array with generated byte values pseudorandomly chosen uniformly from the range of values between -128 (inclusive) and 127 (inclusive).

[Android.Runtime.Register("nextBytes", "([B)V", "", ApiSince=33)]
public void NextBytes(byte[]? bytes);
[<Android.Runtime.Register("nextBytes", "([B)V", "", ApiSince=33)>]
abstract member NextBytes : byte[] -> unit
override this.NextBytes : byte[] -> unit

Parameters

bytes
Byte[]

the byte array to fill with pseudorandom bytes

Implements

Attributes

Remarks

Fills a user-supplied byte array with generated byte values pseudorandomly chosen uniformly from the range of values between -128 (inclusive) and 127 (inclusive).

Added in 10.

Java documentation for java.util.SplittableRandom.nextBytes(byte[]).

Java reference for java.util.SplittableRandom.nextBytes.

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