TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jonathan Crispe
NA
46
48.4k
C# Enumerations in random
Nov 27 2011 2:38 AM
I have enum: "Ten, Jack, Queen, King, Ace"
how can i make it a random,
i mean, if a press a button
it will display 5 cards randomly...
like in the picture below
my code:
public enum m_Cards { Ten, Jack, Queen, King, Ace };
private void button1_Click(object sender, EventArgs e)
{
m_Cards[] cHand = new m_Cards[5];
Random random = new Random();
}
i tried adding for loop but says its missing a cast, so i delete it...
thank you for the help...
Reply
Answers (
2
)
Storing of an array element in memory
System.single in C#