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