randbits overloads
Declared in <random.h>
Same as above, but with compile-time fixed bits count.
template<int Bits>
uint64_t
randbits() noexcept;
» more...
Generate a random (bits)-bit integer.
uint64_t
randbits(int bits) noexcept;
» more...
Bits bits are random and the rest zero.bits bits are random and the rest zero.| Name | Description |
|---|---|
| bits | The number of random bits to produce (0 to 64). |