Re: [Freedos-devel] GW-BASIC random numbers

2020-11-02 Thread TK Chia
Hello Steve, (2) to also add features found in later versions of GW-BASIC --- support for subdirectories, EGA/VGA screen modes, etc. etc. etc. --- and possibly to extend it even further (maybe even have it run natively on Linux?). It is good that the behavior of GW-BASIC, or more precisely BASI

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread TK Chia
Hello Jim, hello Steve, hello Akaydin, DEF SEG is necessary for BLOAD and BSAVE to operate on screen memory - I'll add that you can also do the "old skool" thing and do like we did in my Fortran77 programming days: prompt the user for a seed value, and pass that to RANDOMIZE. 10 PRINT "Enter a

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread Steve Nickolas
On Sun, 1 Nov 2020, Jim Hall wrote: I'll add that you can also do the "old skool" thing and do like we did in my Fortran77 programming days: prompt the user for a seed value, and pass that to RANDOMIZE. 10 PRINT "Enter a random seed value:" 20 INPUT SEED 30 RANDOMIZE SEED And (and MBASIC-80/8

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread Jim Hall
On Sun, Nov 1, 2020 at 1:41 PM Steve Nickolas wrote: > > On Sun, 1 Nov 2020, Bora Akaydin via Freedos-devel wrote: > > > Hi everybody,I am not 100% sure that DEF SEG statement is implemented in > > GW BASIC but if it is, isn't it possible to read timer ticks value from > > BIOS Data area and initi

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread Steve Nickolas
On Sun, 1 Nov 2020, Bora Akaydin via Freedos-devel wrote: Hi everybody,I am not 100% sure that DEF SEG statement is implemented in GW BASIC but if it is, isn't it possible to read timer ticks value from BIOS Data area and initialize random seed using this value? I know it is not the same as "R

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread Bora Akaydin via Freedos-devel
Hi everybody,I am not 100% sure that DEF SEG statement is implemented in GW BASIC but if it is, isn't it possible to read timer ticks value from BIOS Data area and initialize random seed using this value? I know it is not the same as "RANDOMIZE TIMER" but would be a close alternative, IMO. Best

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread Jim Hall
On Sun, Nov 1, 2020 at 1:40 AM TK Chia wrote: > >> But this GW-BASIC seems to treat "TIMER" as a variable, so it's the > >> same as > >> typing: > >> RANDOMIZE 0 > >> or any uninitialized variable: (which are set to zero) > > I checked the release GW-BASIC code. I think it does kind of recognize

Re: [Freedos-devel] GW-BASIC random numbers

2020-11-01 Thread Steve Nickolas
On Sun, 1 Nov 2020, TK Chia wrote: Yes. At the same time, I hear that Michal Necasek (www.os2museum.com) has been working on a separate reconstruction --- involving proprietary code bits --- but has not published his results yet. I believe there are at least two separate possible sub-projects

Re: [Freedos-devel] GW-BASIC random numbers

2020-10-31 Thread TK Chia
Hello Jim, hello Steve, I didn't know how to report a bug to the GW-BASIC folks, but TK Chia hangs out on this list, so I thought I'd mention it here. I do not think there is any official support for channel any more, either at Microsoft, or anywhere else. Microsoft also stated that "[t]he so

Re: [Freedos-devel] GW-BASIC random numbers

2020-10-31 Thread Steve Nickolas
On Sat, 31 Oct 2020, Jim Hall wrote: I didn't know how to report a bug to the GW-BASIC folks, but TK Chia hangs out on this list, so I thought I'd mention it here. I noticed TK Chia released a new GW-BASIC the other day. I started playing around with it, just writing a few simple BASIC programs