randomness in place, fix test