view mackey/academy/damage.rb @ 900:510673c66330

merge
author GOTO Sakuya<c113061@e.koeki-u.ac.jp>
date Thu, 29 Oct 2015 18:56:38 +0900
parents 12f86e86a07f
children
line wrap: on
line source

#!/usr/bin/ruby
# coding: utf-8
def damage()
  srand
  check = rand(4)
  if check == 0
    point = 100
    point
  elsif check == 1
    point = 126
    point
  elsif check == 2
    point = 87
    point
  elsif check == 3
    point == 199
    point
  end
end

yatex.org