[#RandomMixin-01-randbytes-07] = xref:RandomMixin-01.adoc[RandomMixin]::randbytes :relfileprefix: ../ :mrdocs: Generate random bytes. == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:BasicByte.adoc[BasicByte] B = unsigned char> std::vector<B> randbytes(size_t len) noexcept; ---- == Return Value A vector of `len` random bytes. == Parameters [cols="1,4"] |=== | Name| Description | *len* | The number of random bytes to generate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#