[#RandomMixin-01-randbytes-0e] = xref:RandomMixin-01.adoc[RandomMixin]::randbytes :relfileprefix: ../ :mrdocs: Generate fixed‐size random bytes. == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< size_t N, xref:BasicByte.adoc[BasicByte] B = std::byte> std::array<B, N> randbytes() noexcept; ---- == Return Value An array of `N` random bytes. [.small]#Created with https://www.mrdocs.com[MrDocs]#