Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: A Rebol Challenge. The Monty Hall Puzzle

From: rebol665:ifrance at: 16-Dec-2001 17:37

Hi Romano and Sunanda, Your work is brilliant ! It helps me to get to the problem, and finally my 17 years'old son explained it to me. If you consider that each time I loose I did not win, the answer can be shorten a bit. rebol[] win: 100 print ["Win% = " loop win [ win: win - first random [0 0 1]]] It is a beat cheatting considering that your version iterate 500 times so I give also my 1000 iterations version. rebol[] win: 1000 print ["Win% = " (loop win [ win: win - first random [0 0 1]]) / 10] These are respectively 43 and 51 bytes long. Patrick