Introducing my new android apps on google play market,
Free Android Apps
Programing Code Samples
Pages
C#
Android
Sunday, March 17, 2013
C#: Display Random String
public void RandomString()
{
string[] randStr = new string[5]{"hi","hello","how","are","you"};
int indexStr = rnd.Next(randStr.Length);
Console.WriteLine(randStr[indexStr]);
}
Output:
hello
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment