🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #25714

ST Basic problems - RND, Strings

#25714
From: Mabry Tyson
Date: Mon, 16 Mar 1987 17:12
19 lines
1427 bytes
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?
-------
Technical Details
Message-ID: <VAX-MM(196)+TOPSLIB(126)+PONY(141).16-Mar-87.09:12:54.SRI-WARBUCKS.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!uwvax!oddjob!hao!hplabs!ucbvax!SRI-WARBUCKS.ARPA!TYSON

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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: <VAX-MM(196)+TOPSLIB(126)+PONY(141).16-Mar-87.09:12:54.SRI-WARBUCKS.ARPA>
Date: Mon, 16-Mar-87 12:12:54 EST
Article-I.D.: <VAX-MM(196)+TOPSLIB(126)+PONY(141).16-Mar-87.09:12:54.SRI-WARBUCKS.ARPA>
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