Randomizer Class
Assembly: PTS.Randomization.dll
Syntax
public static class Randomizer
Inheritance
System.Object
Randomizer
Methods
Number(Int32, Int32)
Declaration
public static int Number(int minimumValue = -2147483648, int maximumValue = 2147483647)
Parameters
Type |
Name |
Description |
System.Int32 |
minimumValue |
|
System.Int32 |
maximumValue |
|
Returns
Type |
Description |
System.Int32 |
|
Number(Int64, Int64)
Declaration
public static long Number(long minimumValue = -9223372036854775808L, long maximumValue = 9223372036854775807L)
Parameters
Type |
Name |
Description |
System.Int64 |
minimumValue |
|
System.Int64 |
maximumValue |
|
Returns
Type |
Description |
System.Int64 |
|
Number(UInt32, UInt32)
Declaration
public static uint Number(uint minimumValue = 0U, uint maximumValue = 4294967295U)
Parameters
Type |
Name |
Description |
System.UInt32 |
minimumValue |
|
System.UInt32 |
maximumValue |
|
Returns
Type |
Description |
System.UInt32 |
|
ParseTextWithSequence(String, Int32)
Declaration
public static RandomSequenceComponents ParseTextWithSequence(string text, int idCodeBase = 32)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Int32 |
idCodeBase |
|
Returns
Text(Int32)
Declaration
public static string Text(int length)
Parameters
Type |
Name |
Description |
System.Int32 |
length |
|
Returns
Type |
Description |
System.String |
|
TextSequence(UInt64, Int32, Int32, Boolean)
Declaration
public static string TextSequence(ulong sequenceId, int randomCodeLenght = 6, int idCodeBase = 32, bool includeBase = false)
Parameters
Type |
Name |
Description |
System.UInt64 |
sequenceId |
|
System.Int32 |
randomCodeLenght |
|
System.Int32 |
idCodeBase |
|
System.Boolean |
includeBase |
|
Returns
Type |
Description |
System.String |
|
TextSequenceBatch(UInt64, Int32, Int32, Int32)
Declaration
public static ICollection<string> TextSequenceBatch(ulong sequenceId, int count, int randomCodeLenght = 6, int idCodeBase = 32)
Parameters
Type |
Name |
Description |
System.UInt64 |
sequenceId |
|
System.Int32 |
count |
|
System.Int32 |
randomCodeLenght |
|
System.Int32 |
idCodeBase |
|
Returns
Type |
Description |
System.Collections.Generic.ICollection<System.String> |
|
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()