Testing Randomness

How do you solve testing when using randomization? Values will by design be indeterministic, so what is a good way of knowing your program is doing the expected thing?

One of my clever colleagues, Orphis, mentioned in the bypassing the other day a tip about mocking…