Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!oddjob!hao!hplabs!ucbvax!SRI-WARBUCKS.ARPA!TYSON From: TYSON@SRI-WARBUCKS.ARPA (Mabry Tyson) Newsgroups: comp.sys.atari.st Subject: ST Basic problems - RND, Strings Message-ID: Date: Mon, 16-Mar-87 12:12:54 EST Article-I.D.: Posted: Mon Mar 16 12:12:54 1987 Date-Received: Tue, 17-Mar-87 04:09:53 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Tyson@SRI-Warbucks Distribution: world Organization: The ARPA Internet Lines: 19 ST Basic (or at least the version I have) is buggy in its random numbers. If I enter Basic and print out the value of RND(-.26017), I get 3.05185E-05. That's ok. Then if I write a little program: 10 RANDOMIZE 19640 20 I=0 30 I=I+1:IF(RND(1)>0) THEN OLR=RND(0):GOTO 30 40 ? I,OLR,RND(0) it will run for a little while and print out 1450 .26017 -1.00003 and then if I evaluate RND(-.26017), I get -1.00003. I also seem to have a problem in which strings get bashed occasionally. When they do get bashed, it seems to be in the same way. But they don't always get bashed. Does anyone else have these problems? Is it my machine or my version of Basic? If it is the version of Basic, is there a newer version available? -------