Shows how to use xtd::random::next_bytes method.
#include <xtd/console>
#include <xtd/random>
auto main() -> int {
rnd2.next_bytes(bytes2);
for (
auto i = 0ul;
i < bytes1.size();
i++) {
}
for (
auto i = 0ul;
i < bytes2.size();
i++) {
}
}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
static void write(arg_t &&value)
Writes the text representation of the specified value to the standard output stream.
Definition console.hpp:462
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents a pseudo-random number generator, a device that produces a sequence of numbers that meet c...
Definition random.hpp:44
virtual void next_bytes(xtd::span< xtd::byte > &buffer) const
Fills the elements of a specified array of bytes with random numbers.
@ i
The I key.
Definition console_key.hpp:104
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8