[#InsecureRandomContext-randbits-05] = xref:InsecureRandomContext.adoc[InsecureRandomContext]::randbits :relfileprefix: ../ :mrdocs: Generate a random (bits)‐bit integer. == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint64_t randbits(int bits) noexcept; ---- == Return Value 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]#