[#BN_rand_range]
= BN&lowbar;rand&lowbar;range
:mrdocs:

Generate a cryptographically strong uniform public random BIGNUM in &lsqb;0, &rsqb;`range)&period;`

== Synopsis

Declared in `&lt;openssl&sol;bn&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;rand&lowbar;range(
    xref:BIGNUM.adoc[BIGNUM]* rnd,
    xref:BIGNUM.adoc[BIGNUM] const* range);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rnd*
| Destination for the random value&period;
| *range*
| Exclusive upper bound&semi; must be positive&period;
|===


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