Newer
Older
Ruby / kisyojoho.rb
@ABE Sota ABE Sota on 7 Oct 199 bytes 2023-10-07 12:48:23
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

def tenki()
  te = ["晴れ", "雨", "曇り", "強風", "雷雨"]
  te[rand(te.length)]
end

puts "今日の天気は..."
sleep(1)
printf("%s !", tenki)