# Source code for LongSong Example # Choose random number between 10 and 99 n = 10 + rand(90) # print verses of the song 999 Bottles of Beer on the Wall while n > 0 puts n.to_s + " bottles of beer on the wall," puts n.to_s + " bottles of beer." puts "Take one down and pass it around," n = n - 1 puts n.to_s + " bottles of beer on the wall." puts end