[ create a new paste ] login | about

Link: http://codepad.org/NEE1L29t    [ raw code | output | fork ]

Ruby, pasted on Jan 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dice_roll = rand(6)+1

unless dice_roll != 1
    puts "1"
else unless dice_roll != 2
    puts "2"
else unless dice_roll != 3
    puts "3"
else unless dice_roll != 4
    puts "4"
else unless dice_roll != 5
    puts "5"
else unless dice_roll != 6
    puts "6"
end end end end end end


Output:
1
4


Create a new paste based on this one


Comments: