[#FastRandomContext-randbits-08] = xref:FastRandomContext.adoc[FastRandomContext]::randbits :relfileprefix: ../ :mrdocs: `randbits` overloads == Synopses Declared in `<random.h>` Same as above, but with compile‐time fixed bits count. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<int Bits> uint64_t xref:FastRandomContext/randbits-00.adoc[randbits]() noexcept; ---- [.small]#xref:FastRandomContext/randbits-00.adoc[_» more..._]# Generate a random (bits)‐bit integer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint64_t xref:FastRandomContext/randbits-05.adoc[randbits](int bits) noexcept; ---- [.small]#xref:FastRandomContext/randbits-05.adoc[_» more..._]# == Return Value * A random integer whose low `Bits` bits are random and the rest zero. * A random integer whose low `bits` bits are random and the rest zero. == Parameters [cols="1,4"] |=== | Name| Description | *bits* | The number of random bits to produce (0 to 64). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#