- Namespace
- TCLite
.Interfaces
graph BT
Type["IRandomGenerator"]
class Type type-node
Syntax
public interface IRandomGenerator
Methods
Name | Value | Summary |
---|---|---|
GetString |
string |
Returns a random string of the specified length, made up of the characters specified.
|
GetString |
string |
Returns a random string of the specified length, made up of upper and lower case letters, digits and the underscore character.
|
Next |
int |
Returns a random int.
|
Next |
int |
Returns a random int within a specified range.
|
Next |
int |
Returns a random int less than the specified maximum.
|
NextBool |
bool |
Returns a random bool, with 50% probability of being true.
|
NextBool |
bool |
Returns a random bool, with the specified probablility of being true.
|
NextByte |
byte |
Returns a random byte.
|
NextByte |
byte |
Returns a random byte within a specified range.
|
NextByte |
byte |
Returns a random byte less than the specified maximum.
|
NextDecimal |
decimal |
Returns a random decimal.
|
NextDecimal |
decimal |
Returns a random decimal within a specified range.
|
NextDecimal |
decimal |
Returns a random decimal less than the specified maximum.
|
NextDouble |
double |
Returns a random double.
|
NextDouble |
double |
Returns a random double within a specified range.
|
NextDouble |
double |
Returns a random double less than the specified maximum.
|
NextEnum |
object |
Returns a random enum of the specified Type.
|
NextEnum |
T |
Returns a random enum of the specified Type.
|
NextFloat |
float |
Returns a random float.
|
NextFloat |
float |
Returns a random float within a specified range.
|
NextFloat |
float |
Returns a random float less than the specified maximum.
|
NextGuid |
Guid |
Returns a random Guid.
|
NextLong |
long |
Returns a random long.
|
NextLong |
long |
Returns a random long within a specified range.
|
NextLong |
long |
Returns a random long less than the specified maximum.
|
NextSByte |
sbyte |
Returns a random sbyte.
|
NextSByte |
sbyte |
Returns a random sbyte within a specified range.
|
NextSByte |
sbyte |
Returns a random sbyte less than the specified maximum.
|
NextShort |
short |
Returns a random short.
|
NextShort |
short |
Returns a random short within a specified range.
|
NextShort |
short |
Returns a random short less than the specified maximum.
|
NextUInt |
uint |
Returns a random unsigned int.
|
NextUInt |
uint |
Returns a random unsigned int within a specified range.
|
NextUInt |
uint |
Returns a random unsigned int less than the specified maximum.
|
NextULong |
ulong |
Returns a random unsigned long.
|
NextULong |
ulong |
Returns a random unsigned long within a specified range.
|
NextULong |
ulong |
Returns a random unsigned long less than the specified maximum.
|
NextUShort |
ushort |
Returns a random unsigned short.
|
NextUShort |
ushort |
Returns a random unsigned short within a specified range.
|
NextUShort |
ushort |
Returns a random unsigned short less than the specified maximum.
|