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

◆ next_values() [1/2]

template<typename value_t >
void xtd::random::next_values ( std::vector< value_t > &  buffer) const
inline

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<value_t>::max().