[#RandomMixin-01-randbytes-07]
= xref:RandomMixin-01.adoc[RandomMixin]::randbytes
:relfileprefix: ../
:mrdocs:

Generate random bytes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:BasicByte.adoc[BasicByte] B = unsigned char&gt;
std::vector&lt;B&gt;
randbytes(size&lowbar;t len) noexcept;
----

== Return Value

A vector of `len` random bytes&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *len*
| The number of random bytes to generate&period;
|===


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