1. ## random numbers

what would be an appropriate cose for recieving random numbers? is there away that the random number can be linked to obtained ine of three answers wih only the input of a single number? my ultimate goal is to build a game called M.A.S.H. The game is a process of only random things occuring:
M.A.S.H.

Wife
1. J.lo
2. Mariah Carey
3. Brittany Spears

Car
1. benz
2. beamer
3. punch buggy

Number of kids
1. 5
2. 6
3. 0

The player must pick a number greater than three. lets say 5, then the player will go through and count off each number llife this

Wife
1. J.lo (1) (5)
2. Mariah Carey(2) (1)
3. Brittany Spears (3) (2)

Car
1. benz(4)
2. beamer(5)
3. punch buggy(1)

Number of kids
1. 5 (2) (3)
2. 6 (3) (4)
3. 0 (4) (5)

every (5) is what you going to have when you get older
so how can i use this info to make this program

2. I've removed all the pointless replies to this thread. Keep your private conversations to PMs.

3. I'm really confused by your question about random numbers. Where in your MASH game do you use random numbers? The only number I see if the one the user enters which wouldn't be random.

4. Originally posted by PJYelton
I'm really confused by your question about random numbers. Where in your MASH game do you use random numbers? The only number I see if the one the user enters which wouldn't be random.
Funny, I said that same thing, but that post of mine was deleted. I think the mod was just a tad overzealous there. He could've left the post that was related to programming

5. Originally posted by joshdick
Funny, I said that same thing, but that post of mine was deleted. I think the mod was just a tad overzealous there. He could've left the post that was related to programming
Originally posted by joshdick
Anyway, I fail to see what's random about that 'game'. You could preset those options for each category or have the user enter them. Then, you recieve a single digit of input. The counting off you did was very sequential, and thus, could be coded out relatively easily (hint: the modulus operator is more useful than you think).

I really don't think you need random numbers for what you described. If you want practice using random numbers, code out Yahtzee or better yet, a card game.
There, better?

6. Yes, much better

Thank you, Hammer