The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
require "random/system"
u = 0_u64
u = Random::System.next_u
pp u, typeof(u)
shows UInt8
. I think next_u
is pretty strange method. Why not make next_u32, next_u64?
u = 0_u64
but it can have absolutely no effect on consequent assignments to it