Shows how to use xtd::random class.
#include <xtd/console>
#include <xtd/random>
auto main() -> int {
rand.next_bytes(bytes);
for (auto byte_value : bytes)
for (auto ctr = 0; ctr <= 4; ctr++)
for (auto ctr = 0; ctr <= 4; ctr++)
for (auto ctr = 0; ctr <= 4; ctr++)
for (auto ctr = 0; ctr <= 4; ctr++)
for (auto ctr = 0; ctr <= 4; ctr++)
}
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8