Creating Random

Create random number System.Random rand = new System.Random(); //Creates seed value from system clock if no seed supplied int iTemp = rand.Next(1, (100+1)); //Min possible value, max possible value+1  

Read More

Create Random String

Create A Random String //******************************************** //******************************************** //********** GENERATE RANDOM STRING ********** //******************************************** //******************************************** private string GenerateRandomString (int length) { int Count; const string STRING_CHARACTER_SET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; string OutputString = ""; System.Random rand = new System.Random(); //Creates seed value from system clock if no seed supplied for (Count = 0; Count < length; Count++) { OutputString […]

Read More

Creating Random

Create random number System.Random Random1 = new System.Random(); //Creates seed value from system clock if no seed supplied iTemp = Random1.Next(1, (100+1)); //Min possible value, max possible value+1  

Read More