[Newbies] Generating a predictable 'atRandom' result for testing

John Almberg jalmberg at identry.com
Sun Aug 12 18:51:30 UTC 2007


I'm trying to write a test for a method that uses atRandom to choose  
a random integer. Is there a way to seed the random number generator  
to generate a predictable sequence of numbers, so I end up with  
testable results?

TIA: John



More information about the Beginners mailing list