Added a ruby random range func.