Better ranges random generation.