#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

puts"Enterを押して1d100を振れるよ!"

while true
  STDERR.print"Enterをうちこんでね!(終了はq)"
  line = gets.chomp

  if line =="q" then
    puts"さらばだ...。"
    break
  end

  printf("%d", rand(1..100))
  puts"" 
end
printf("")
