Skip to content

Instantly share code, notes, and snippets.

@skyriser
Created August 4, 2015 07:07
Show Gist options
  • Save skyriser/493b17d4e1906e9ab7d3 to your computer and use it in GitHub Desktop.
Save skyriser/493b17d4e1906e9ab7d3 to your computer and use it in GitHub Desktop.
だいたい8桁の16進数をランダムで得るやつ
prng = Random.new(666)
10.times do |i|
puts prng.rand(99999999999).to_s(16).upcase!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment