Make random_int(max) slightly faster
Use generics instead of inheritance and methods. v0.2.3