Random as a class



examples/random/class.cr
rnd = Random.new
puts rnd.next_float
puts rnd.next_int
puts rnd.next_bool
puts rnd.hex(3) # 6 characters from hex values
puts rnd.base64(2)

0.17048389661361377
-258843089
false
ba753d
Fd4=