xtd 0.2.0
Loading...
Searching...
No Matches

◆ next_bytes() [2/2]

virtual void xtd::random::next_bytes ( xtd::byte buffer,
size_t  buffer_size 
) const
virtual

Fills the elements of a specified array of bytes with random numbers.

Parameters
bufferAn array of bytes to contain random numbers.
Exceptions
argument_null_exceptionbuffer is null.
Remarks
Each element of the array of bytes is set to a random number greater than or equal to zero, and less than or equal to std::numeric_limits<xtd::byte>::max().