This question already has an answer here:
- How should I test randomness? 10 answers
There are strings and each string has a weight in a data structure. The getRandom() method should return a string randomly with its weight/total weight probability.
There is already a question on how to define this getRandom() method on stackexchange.
But this question is about how to test this getRandom() method?
Any ideas would be really helpful. Thank you.