[comp.sys.atari.st] ST Basic problems - RND, Strings

TYSON@SRI-WARBUCKS.ARPA (Mabry Tyson) (03/16/87)

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?
-------