#!/usr/bin/env ruby # -*- coding: utf-8 -*- j=[] j<<"勝ち" j<<"負け" x=rand if x==0 printf("%s\n",j[x]) else printf("%s\n",j[x]) end