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

◆ next_values() [2/2]

template<typename value_t >
void xtd::random::next_values ( value_t *  buffer,
size_t  buffer_size 
) const
inline

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

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