#!/usr/bin/env ruby # -*- coding: utf-8 -*- coin = ["表", "裏"] srand() hyori = rand(2) printf("投げたコインは%sでした。\n", coin[hyori])