properly limit rands