|
From: | Bruce M. Axtens |
Subject: | [open-cobol-list] RANDOM-ly non-random |
Date: | Thu, 30 May 2013 22:30:50 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Thunderbird/22.0 |
Context: MinGW $ uname -a Sadly, I don't get to do much COBOL. The best I can do is the occasional RosettaCode task. I was looking at <http://rosettacode.org/wiki/Loops/Break#COBOL>. I copied and pasted into a text editor, made it free-form, and started to fiddle. I've got as far as this: IDENTIFICATION DIVISION.The END-PROGRAM seemed to be mandatory. I wouldn't compile otherwise. The thing that has me confused (and thus all the fiddling with RANDOM) is that the program runs properly occasionally, and other time just gets locked on a particular value and doesn't change. A working runs looks like this: $ breakloop.exe but another run starts off nicely, but then gets stuck $ breakloop.exeWhy is it so? Kind regards, Bruce. |
[Prev in Thread] | Current Thread | [Next in Thread] |