Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 RANDOM 1 or 2 PROGRAM
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CtrlAltDelicious




PostPosted: 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
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: