Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 697:cf6a229d02f6
test
author | MURAKAMI Masaki <c112124@h.koeki-u.ac.jp> |
---|---|
date | Tue, 23 Jun 2015 15:36:48 +0900 |
parents | 807b41e4d042 |
children | c7c5026abb95 |
files | 2014OC/magic.rb |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/2014OC/magic.rb Tue Jun 23 15:24:11 2015 +0900 +++ b/2014OC/magic.rb Tue Jun 23 15:36:48 2015 +0900 @@ -2,12 +2,22 @@ # -*- coding: utf-8 -*- def magic() - srand(123456789) + srand(6789012345) hoge = Array.new - while hoge.length < 100 - hoge << rand(1000000) + while hoge.length < 9 + hoge << rand(10000000000) hoge.uniq! end return hoge end +#num = magic() +#n = 0 +#for i in num + #name = "~/public_html/web/2014OC/qr2/cord" + #url = "http://skip.koeki-prj.org/2014OC/Bingo.rb?getcom=" +# print "qrencode -o ~/public_html/web/2014OC/qr2/cord#{n}.png -s 10 \'http://skip.koeki-prj.org/2014OC/Bingo.rb?getcom=#{i}\'\n" +# n += 1 +#end + +