• Post Reply Bookmark Topic Watch Topic
  • New Topic

code explain  RSS feed

 
ten doeschate
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is a problem in the following code below
as my output is coming either head 20 times or tail 20 times
please help me correct this code so that not all heads and all tails come

[Added code tags - see UseCodeTags for details]
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many times do you pick a random number in that code? How many times do you need to pick one so that each coin toss is random?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!