implement the better randomness