Skip to content

libsodium.RandomUInt32

Andrew Lambert edited this page Nov 26, 2022 · 6 revisions

libsodium.RandomUInt32

Method Signature

 Protected Function RandomUInt32(Optional UpperBound As UInt32) As UInt32

Parameters

Name Type Comment
Upperbound UInt32 Optional. The maximum allowed value of the returned number

Return value

An unpredictable unsigned 32-bit integer.

Remarks

Generates an unpredictable UInt32. If Upperbound is specified then the return value is in the range 0-Upperbound (exclusive) with a "best effort" guarantee of a uniform distribution.

See also

Clone this wiki locally