using replacing Random.new.rand with Kernel.rand