[#RandomMixin-01-randbits-0a0]
= xref:RandomMixin-01.adoc[RandomMixin]::randbits
:relfileprefix: ../
:mrdocs:

Generate a random (bits)&hyphen;bit integer&period;

== Synopsis

Declared in `&lt;random&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint64&lowbar;t
randbits(int bits) noexcept;
----

== Return Value

A random integer whose low `bits` bits are random and the rest zero&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bits*
| The number of random bits to produce (0 to 64)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
