[#InsecureRandomContext-rand] = xref:InsecureRandomContext.adoc[InsecureRandomContext]::rand :relfileprefix: ../ :mrdocs: Generate a random integer in its entire (non‐negative) range. == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::integral I> I rand() noexcept; ---- == Return Value A random value spanning the full non‐negative range of `I`. [.small]#Created with https://www.mrdocs.com[MrDocs]#