Back to Fpinscala

19.Hint

answerkey/testing/19.hint.md

latest218 B
Original Source

If we are just looking at the random case, one way to have the generated Int depend on the String might be to set the seed of a new random number generator to be equal to the hashCode of the given input String.