Page 1 of 1

Oddity with RND

Posted: Thu Sep 18, 2025 8:23 am
by RWAP
I was just trying my back catalogue of games on Minerva, and came across an instance where Night Nurse didn't run even in 128K mode.

It reported an error in BASIC - the line was:

yrand = RND(60 TO 100,120 TO 190)

It is interesting that the JM and JS ROMs do not complain about this and appear to work - although they seem to do the equivalent of

yrand = RND(60 TO 100)

Has anyone come across this before - it might actually be a useful addition to specify more than one range!

Re: Oddity with RND

Posted: Thu Sep 18, 2025 8:55 am
by t0nyt
Hi Rich

I came across this when I was trying to get Night Nurse running on Minerva too

Sorry, I probably should have mentioned it!

IIRC JS doesn’t do anything with the 2nd range, just ignores it?

Re: Oddity with RND

Posted: Thu Sep 18, 2025 12:09 pm
by RWAP
Yes, it does seem to ignore it. I have re-written the code to correct the issue.

Re: Oddity with RND

Posted: Thu Sep 18, 2025 2:49 pm
by Sebright
Funny enough, I came up with “Knight Nurse” as a game idea recently, set in Camelot. “When the day’s work is done, he sets down his lance and picks up his lancet.”

I ran it past my wife and she gave it a firm NO!

Re: Oddity with RND

Posted: Thu Sep 18, 2025 9:55 pm
by NormanDunbar
:D :D :D :D :D