trek (owner)

Revisions

gist: 129488 Download_button fork
public
Public Clone URL: git://gist.github.com/129488.git
Embed All Files: show embed
five_char_codes.rb #
1
2
3
4
5
6
7
8
count_up = lambda do |x,a|
  unless (x >= Integer(0xFFFFF))
    count_up.call(x + rand(1000), a)
    a.push(x.to_s(16))
  end
end
 
codes = count_up.call(Integer(0x10000), [])