Skip to content

Instantly share code, notes, and snippets.

@ivarne
Created November 5, 2014 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivarne/fe258ea95b9982827676 to your computer and use it in GitHub Desktop.
Save ivarne/fe258ea95b9982827676 to your computer and use it in GitHub Desktop.
num = rand(1_000_000)
len = map(rand(1_000_000)) do a
e = string(a)
if e[1] == '0'
length(e)-2
else
length(e)-4
end
end
h = hist(len)
println(int(hcat(h[1][2:end],h[2])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment