On Sun, Nov 1, 2020 at 1:41 PM Steve Nickolas <usots...@buric.co> 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 initialize random seed using this value? I know it is > > not the same as "RANDOMIZE TIMER" but would be a close alternative, IMO. > > GW-BASIC is the same as IBM Advanced BASIC, except that it does not > require Cassette BASIC in ROM. Prior to 3.2 with the exception of Compaq, > there are differences - but I don't think this was intentional. > > DEF SEG is necessary for BLOAD and BSAVE to operate on screen memory - > something I did a lot on my old 5160. > > -uso. >
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 _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel