Same as above, but with compile‐time fixed bits count.

Synopsis

Declared in <random.h>

template<int Bits>
uint64_t
randbits() noexcept;

Return Value

A random integer whose low Bits bits are random and the rest zero.

Created with MrDocs