It won't work. It's odd. It won't stop and it won't add a number onto x so it would say "Roll 1: 5 Roll 2: 3" etc It just repeats "Roll 1: (random number)". Also, is there a way for me to add one to the rand function so it won't get a zero? Attachments: http://www.ruby-forum.com/attachment/5009/dice.rb -- Posted via http://www.ruby-forum.com/.