Minor uBasic/4tH enhancements

12 views
Skip to first unread message

The Beez

unread,
Jan 4, 2026, 1:12:00 PM (11 days ago) Jan 4
to 4tH-compiler
I've added two small features:
  1. Info("max-rand") will return the value of MAX-RAND;
  2. RND() will now return an error message (Out of range) when a parameter larger than MAX-RAND is supplied. Negative values will effectively render a parameter of "0".
Hans Bezemer

The Beez

unread,
Jan 5, 2026, 10:51:31 AM (10 days ago) Jan 5
to 4tH-compiler
I've managed to port MINSTD90 to 4tH - including a 32 bits version. That will be the standard now for uBasic/4tH (and CHOOSE in general) - because it's better. Lots of testing thru different platforms. I'm tired now. Last tests still running, BTW.

Code in SVN.

Hans Bezemer

The Beez

unread,
Jan 6, 2026, 6:38:08 AM (9 days ago) Jan 6
to 4tH-compiler
Ok, I've added a few other minor changes - and I can inform you that the move to a more up to date PRNG (for both 4tH (CHOOSE) as well as uBasic/4tH) has been completed. It proved to be more painful than I thought, but it was something I wanted to do for a long time, so I'm happy it has been done.

Hans Bezemer
Reply all
Reply to author
Forward
0 new messages