WrappedRandomSource<TRng>.NextBytes Method

Definition

Namespace: Numerics.NET.Random.Adapters
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0

Overload List

NextBytes(Byte[]) Fills the elements of a specified array of bytes with random numbers.
NextBytes(Span<Byte>) Fills the elements of a specified span of bytes with random numbers.

NextBytes(Byte[])

Fills the elements of a specified array of bytes with random numbers.
C#
public override void NextBytes(
	byte[] buffer
)

Parameters

buffer  Byte[]
An array of bytes to contain random numbers.

Exceptions

ArgumentNullExceptionbuffer is null.

NextBytes(Span<Byte>)

Fills the elements of a specified span of bytes with random numbers.
C#
public override void NextBytes(
	Span<byte> buffer
)

Parameters

buffer  Span<Byte>
A span of bytes to contain random numbers.

See Also