I saw some stuff out there for different types of COBOL on the web about Random Number generators i.e. "seed", "pseudo-random" as mentioned above by WMK.
Seems simple to do in Java. Just curious why the Intrinsic Functions module or other sub-program (C$...) does not include random number generation in RM-COBOL. Random Number generation seems to be a pretty common necessity. Learned about it in classes back in my school days and have seen it used in Java in other work places.
On a more positive note, I did get to use C$DELAY yesterday and was happy about its results!
I'll check that link out. Thanks.
Webrabbit:
What's the efficiency of using the low order bits of the system's clock for the seed in a random number? What if you have 2 transactions, for example, hitting your application one right after the other within milliseconds of each other? For each you need a distinct random number generated. Since they are within milliseconds of each other, wouldn't you end up with the same random number on each?