Friday, December 21, 2012

random generate this or that



#!/usr/bin/ruby -w

puts thisOrThat = rand(2) == 0? 4 : 5

puts ors = 4+rand(2)

puts ors2 = %w(down up).sample

puts rand(4..5)

No comments:

Post a Comment