Mercurial > hgrepos > hgweb.cgi > skipweb
view 2014OC/magic.rb @ 2515:f1bdafac7200
acc id num
author | ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp> |
---|---|
date | Mon, 13 Jul 2015 16:14:08 +0900 |
parents | 44e60de7c395 |
children |
line wrap: on
line source
#!/usr/bin/env ruby # -*- coding: utf-8 -*- def magic() srand(123456789) hoge = Array.new while hoge.length < 100 hoge << rand(1000000) hoge.uniq! end return hoge end