Energy Core Library
Energy.Base.Random Class Reference

Random More...

Static Public Member Functions

static string GetRandomGuid ()
 Get random GUID identifier More...
 
static int GetNextInteger (int minimum, int maximum)
 
static int GetNextInteger ()
 
static int GetNextInteger (int count)
 
static string GetRandomText (string available, int minimum, int maximum)
 Generate random text. More...
 
static string GetRandomText ()
 Generate random text. More...
 
static string GetRandomText (int minimum, int maximum)
 Generate random text. More...
 
static string GetRandomText (int length)
 Generate random text. More...
 
static string GetRandomHex (int length)
 Generate random hexadecimal number. More...
 
static string GetRandomHex ()
 Generate random hexadecimal number. More...
 
static byte [] GetRandomByteArray (int size)
 Get byte array filled with random values More...
 
static byte [] GetRandomByteArray (int size, byte minimum, byte maximum)
 Get byte array filled with random values within specified range More...
 

Detailed Description

Member Function Documentation

◆ GetNextInteger() [1/3]

static int Energy.Base.Random.GetNextInteger ( int  minimum,
int  maximum 
)
static

◆ GetNextInteger() [2/3]

static int Energy.Base.Random.GetNextInteger ( )
static

◆ GetNextInteger() [3/3]

static int Energy.Base.Random.GetNextInteger ( int  count)
static

◆ GetRandomByteArray() [1/2]

static byte [] Energy.Base.Random.GetRandomByteArray ( int  size)
static

Get byte array filled with random values

Parameters
size
Returns

◆ GetRandomByteArray() [2/2]

static byte [] Energy.Base.Random.GetRandomByteArray ( int  size,
byte  minimum,
byte  maximum 
)
static

Get byte array filled with random values within specified range

Parameters
size
minimum
maximum
Returns

◆ GetRandomGuid()

static string Energy.Base.Random.GetRandomGuid ( )
static

Get random GUID identifier

Returns

◆ GetRandomHex() [1/2]

static string Energy.Base.Random.GetRandomHex ( int  length)
static

Generate random hexadecimal number.

Parameters
lengthNumber of hexadecimal characters
Returns

◆ GetRandomHex() [2/2]

static string Energy.Base.Random.GetRandomHex ( )
static

Generate random hexadecimal number.

Returns

◆ GetRandomText() [1/4]

static string Energy.Base.Random.GetRandomText ( string  available,
int  minimum,
int  maximum 
)
static

Generate random text.

Parameters
availableAvailable characters for generating random text
minimumMinimum number of characters
maximumMaximum number of characters
Returns

◆ GetRandomText() [2/4]

static string Energy.Base.Random.GetRandomText ( )
static

Generate random text.

Returns

◆ GetRandomText() [3/4]

static string Energy.Base.Random.GetRandomText ( int  minimum,
int  maximum 
)
static

Generate random text.

Parameters
minimumMinimum number of characters
maximumMaximum number of characters
Returns

◆ GetRandomText() [4/4]

static string Energy.Base.Random.GetRandomText ( int  length)
static

Generate random text.

Parameters
lengthNumber of characters
Returns

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