A random number generator is guaranteed to produce a correct solution to any problem, but runtime usually does not meet usability standards.
Also, solution testing is mandatory. Luckily, you can ask an RNG for that, too, as long as you have tests for the testers already written.