Simplify and add comments to testGotMessage
Clean up and document repeatable_random.js