[#FastRandomContext-randbytes-0e] = xref:FastRandomContext.adoc[FastRandomContext]::randbytes :relfileprefix: ../ :mrdocs: `randbytes` overloads == Synopses Declared in `<random.h>` Generate fixed‐size random bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< size_t N, xref:BasicByte.adoc[BasicByte] B = std::byte> std::array<B, N> xref:FastRandomContext/randbytes-06.adoc[randbytes]() noexcept; ---- [.small]#xref:FastRandomContext/randbytes-06.adoc[_» more..._]# Generate random bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:BasicByte.adoc[BasicByte] B = unsigned char> std::vector<B> xref:FastRandomContext/randbytes-0b.adoc[randbytes](size_t len) noexcept; ---- [.small]#xref:FastRandomContext/randbytes-0b.adoc[_» more..._]# == Return Value * An array of `N` random bytes. * 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]#