OTA cobs had the rand() function as an accesible script element. You could say sometihng like rand(x,y) and the rand function would return a random number between X and Y inclusive.
After poking around the Spring source, I believe I have found a way to get it working on a single machine; but the problem would come with the simulation going out of sync over the internet if two different seeds were provided for rand. I have a question:
Is the COB handling code synced or unsyned? From talking with jounonmiko, it appears tobe unsynced, but i wantd to ask here jsut to be sure.
if it is synced, it will be easy enough to use the CGlobalStuff's rand Int generator to generate a random integer and do some basic arithmetic to get it within the inclusive value as specified in the rand function's parameter list. If not, I would have to try and go with so more hacky approach.