Random 32.Next Bytes Method
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Next | Fills the elements of a specified array of bytes with random numbers. |
Next | Fills the elements of a specified span of bytes with random numbers. |
Next | Fills the elements of a specified span of bytes with random numbers. |
Next | Fills the elements of a specified span of bytes with random numbers. |
NextBytes(Span<Byte>)
Fills the elements of a specified span of bytes with random numbers.
public override void NextBytes(
Span<byte> buffer
)
Parameters
NextBytes(Byte[], Boolean)
Fills the elements of a specified span of bytes with random numbers.
public void NextBytes(
byte[] buffer,
bool compatibleByteOrder
)
Parameters
Remarks
As of version 9, a more efficient implementation means that the order of each set of 4 bytes is reversed. To obtain identical results to previous versions, set compatibleByteOrder to true.
NextBytes(Span<Byte>, Boolean)
Fills the elements of a specified span of bytes with random numbers.
public void NextBytes(
Span<byte> buffer,
bool compatibleByteOrder
)
Parameters
Remarks
As of version 9, a more efficient implementation means that the order of each set of 4 bytes is reversed. To obtain identical results to previous versions, set compatibleByteOrder to true.