Posted By

inkdeep on 03/10/10


Tagged

random ruby boolean


Versions (?)

Ruby Coin Toss


 / Published in: Ruby
 

  1. class CoinToss
  2. # there has got to be a better way
  3. def tf
  4. aux = [true,false]
  5. aux[rand(2)]
  6. end
  7. end

Report this snippet  

You need to login to post a comment.