#!/usr/bin/env ruby # -*- coding: utf-8 -*- def janken() te = ["グー", "チョキ", "パー"] te[rand(te.length)] end puts "ジャ〜ンケ〜ン" sleep(1) printf("%s!\n", janken)