PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.RandomNumber Class Reference

provides a singleton wrapper around Random.Next to reduce the chances of clashing More...

Static Public Member Functions

static int Next ()
 Wraps Random.Next.
 
static int Next (int maxValue)
 Wraps Random.Next.
 
static int Next (int minValue, int maxValue)
 Wraps Random.Next.
 
static double NextDouble ()
 Wraps Random.NextDouble.
 
static void NextBytes (byte[] buffer)
 Wraps Random.NextBytes.
 

Detailed Description

provides a singleton wrapper around Random.Next to reduce the chances of clashing

Member Function Documentation

◆ Next() [1/3]

static int PeanutButter.Utils.RandomNumber.Next ( )
static

Wraps Random.Next.

Returns

◆ Next() [2/3]

static int PeanutButter.Utils.RandomNumber.Next ( int  maxValue)
static

Wraps Random.Next.

Parameters
maxValue
Returns

◆ Next() [3/3]

static int PeanutButter.Utils.RandomNumber.Next ( int  minValue,
int  maxValue 
)
static

Wraps Random.Next.

Parameters
minValue
maxValue
Returns

◆ NextBytes()

static void PeanutButter.Utils.RandomNumber.NextBytes ( byte[]  buffer)
static

Wraps Random.NextBytes.

Parameters
buffer

◆ NextDouble()

static double PeanutButter.Utils.RandomNumber.NextDouble ( )
static

Wraps Random.NextDouble.

Returns

The documentation for this class was generated from the following file: