Dumb solution: hash all of the previous results. Test the hash every time if the value has been used before and generate another num if it has. In any case, this solution will provide better results than storing the vals in an array . (obviously)
Originally posted as a Categorized Answer.