다음을 통해 공유


IRandomGenerator.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", "GetNextBytes_arrayBHandler:Java.Util.RandomGenerators.IRandomGenerator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void NextBytes (byte[]? bytes);
[<Android.Runtime.Register("nextBytes", "([B)V", "GetNextBytes_arrayBHandler:Java.Util.RandomGenerators.IRandomGenerator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member NextBytes : byte[] -> unit
override this.NextBytes : byte[] -> unit

Parameters

bytes
Byte[]

the byte array to fill with pseudorandom bytes

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).

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