How to Random Integer in COBOL - Code Snippet

How to perform 'Random Integer' in COBOL.

example.cbl
* Task: Random Integer
* Language: COBOL

PROCEDURE DIVISION. random_integer() 
    * Implementation for Random Integer
    * TODO: Implement core logic here
    * Step 1: Prepare data
    * Step 2: Process Random Integer
    DISPLAY("Done");
STOP RUN.
AdSense Slot