Mercurial > hgrepos > hgweb.cgi > skipweb
view minato2014/magic.rb @ 2814:fca9eee4f0b9
ijuu(-tyu.org
author | OOTANI Hiroyuki <c115036@g.koeki-u.ac.jp> |
---|---|
date | Mon, 30 Nov 2015 19:38:37 +0900 |
parents | d0116df87007 |
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