3 ms·
Another place where randomness comes in handy is testing. Suppose you partition your test input set into N different partitions of equal size, and you want, fo
by pfdietz 4y ago
Another place where randomness comes in handy is testing.
Suppose you partition your test input set into N different partitions of equal size, and you want, for each partition, to have a test input from that partition. If you just generate random tests then on average after generating N log N tests you will have hit each partition at least once. And this is true not just of the partitions you choose, but ANY N partitions of equal size.