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

◆ next_bytes() [1/2]

virtual void xtd::random::next_bytes ( std::vector< xtd::byte > &  buffer) const
virtual

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

Parameters
bufferAn array of bytes to contain random numbers.
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().
Examples
random1.cpp.