Question : Randam generatetion  in asp.net with C#

hello
I have three country's
suppose I have USA,UK,AUS I want to display randomly
how ?
can u send me the code

Answer : Randam generatetion  in asp.net with C#

How are you're country's saved ? Are they in an array ?

string[] myCountries = { "USA", "UK", "AUS" };
string randomItem = myCountries [ new Random().Next( 0, my.GetLength(0) ) ];
Random Solutions  
 
programming4us programming4us