-
October 11th, 2010, 06:38 PM
#1
Random Arrays
Hello,
I am working on a project for fun. What I am trying to do is create a C# version of the game Deal or No Deal.
Currently, I am struggling with the concept of the briefcases. What I would like to do is create an array of size 26 (there are 26 total briefcases) with values between $0.01 and 1M (just like on the game show).
This way, the case number can be the index of the array element and the values can be any value between $0.01 and 1M.
So, my question is: Is there a way to create an array that fills randomly with a predefined set of values?
Or does anyone think it would be easier to create a "briefcase" object with attribute of number and value?
Thanks for any advice,
Bill
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|