Generating random numbers in the model

This should be trivial to do in a single model, but we should probably start a new topic for it. Can you do so, while posting the code you have for the two separate models, then I should be able to advise on how to properly combine.