RANDOM 1 or 2 PROGRAM
Author |
Message |
CtrlAltDelicious
|
Posted: Tue Nov 14, 2017 1:15 pm Post subject: RANDOM 1 or 2 PROGRAM |
|
|
What is it you are trying to achieve?
Make a program where if the user enters an even number (n), n numbers will be displayed in a list, consisting of random 1's or 2's.
Example: User Enters 12. There should be 6 1's and 6 2's, in a completely random order.
What is the problem you are having?
- Randomizing the outcome
- Output the correct number of results (1s & 2s)
[/Turing]
Thanks in advance for any help you can provide |
|
|
|
|
|
Sponsor Sponsor
|
|
|
|
|