nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Randomizer / IProvideRandomValues

IProvideRandomValues

Full name Microsoft.VisualBasic.Math.IProvideRandomValues Assembly Microsoft.VisualBasic.Math.Randomizer Members 4

01 Syntax

Microsoft.VisualBasic.Math.IProvideRandomValues

02 Methods

NameOverloadsSummary
NextFloat 1 Generates a random float.
NextFloats 1 Fills the elements of a specified array of bytes with random numbers.
Next 1 Returns a random integer that is within a specified range.

03 Properties

NameOverloadsSummary
IsThreadSafe 1

04 Members

method NextFloat #
NextFloat

Generates a random float. Values returned are from 0.0 up to but not including 1.0.

method NextFloats #
NextFloats(Double())

Fills the elements of a specified array of bytes with random numbers.

Parameters
NameTypeDescription
bufferDouble()

An array of bytes to contain random numbers.

method Next #
Next(Int32, Int32)

Returns a random integer that is within a specified range.

Parameters
NameTypeDescription
minValueInt32

The inclusive lower bound of the random number returned.

maxValueInt32

The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.

Returns

A 32-bit signed integer greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue. If minValue equals maxValue, minValue is returned.

property IsThreadSafe #
IsThreadSafe