Test the weightRandom function by calling 1000 times and counting each result.