test the case where randoms num is 0