← Back to Downloads

Einstein Magazine No. 74 Listings Disc

David Williams's Lottery Comparator and Lottery Generator, with Sid Dunn's three Small-C examples as source: the listings from Einstein Magazine No. 74, 1995, on one bootable Xtal BASIC disc.
Software
1995
1.0 (17 October 2026)
346 KB
Last Updated
October 23, 2026
The Lottery Comparator from Einstein Magazine No. 74 showing three winning numbers

About

The programs from Einstein Magazine & All Micro News No. 74, March to April 1995, typed in and on one bootable Xtal BASIC disc.

LOTCOMP, David Williams's Lottery Comparator, takes the six winning National Lottery numbers from the TV and your own six, and shows how many you matched and which. LOTGEN, his Lottery Generator, gives "Albert's choice": six different numbers from 1 to 49, as many times as you like. Both are dated November 1994.

With them are Sid Dunn's three Small-C examples from "Cheap and Cheerful C Programming: Part 2": FT.C reads a floating point number, HARMONIC.C adds up the harmonic series until it passes 10, and CHARSET.C writes the printable character set to a file. They are source files to read.

The listings were printed on pages 18 to 22 of the magazine, which is on this site as Einstein Magazine No. 074. Page 3 of the same issue is where Andrew McRobbie owns up to the text reader printed anonymously in No. 73, which is on the Einstein Magazine No. 73 Listings Disc. This disc saves you typing them in.

Running Them

Boot the disc, type XBAS, then LOAD "LOTCOMP" or LOAD "LOTGEN", and RUN.

What Is in the Download

A zip holding the disc image as a DSK, the same disc as an MFI for MAME to write to, the listings as BASIC text and as tokenised Xtal BASIC, the C source files, a README with the full account of each program, and the screen captures and MAME scripts used to test them.

Verified

Transcribed from the page images and run on the Einstein in MAME 0.289 with Xtal BASIC 4.2. Both BASIC programs were loaded into BASIC and saved back, giving the same bytes as our files. Both run as printed, with no corrections needed: the comparator found three matches in a test draw and said BAD LUCK for none, and the generator gave six sets of six different numbers. The C files need the Small-C compiler from UKEUG library volume PD224, which we do not have, so they have not been compiled or run. Not run on real hardware.

Kept as Printed

The BASIC is as printed. The C examples are transcribed, not compiled. HARMONIC.C and CHARSET.C are our file names; the article names only "Program FT". A crease on our copy of page 18 runs through three comments in FT.C; the missing letters were filled in, in the comments only, and the README says where. The GREET.C material on pages 17 and 18 is the compiler's console output, not a listing; its source is on the No. 73 disc. No addresses are in the listings.

The programs are their authors', published in Einstein Magazine in 1995.

Gallery

No items found.

Publisher

Steam Computer Society
Read about the publisher ➔
FILE downloads
.ZIP
ZIP Package

Get the Newsletter

New guides, disk images and community finds, roughly once a quarter. No spam, we promise, this isn't Tatung's marketing department.
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.