#!/usr/bin/env ruby # coding: utf-8 # -*- cobing: utf-8 -*- def komento(x,y) serifu=[x,y] srand() homeru=rand(serifu.length) printf("%s\n",serifu[homeru]) end komento("すごい","いいね")