| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Random number generation |
Hi Mark, You wrote to me: MH>GW>The SNIPPETS code is about as close as you'll get programatically. MH>Has anybody tried compiling the TSR code in there? I have and can't get MH>it to compile.....:( What do you mean by "the TSR code in there?"? If you mean DSPCLOCK.C, then it compiles and works here (using BC 3.1, he says it was written using a Borland compiler). Note that his value for tps, which he found experimentally, suggests his system system oscillator was running at the top end of the expected frequency range, at 1.197001 Mhz rather than the nominal 1.190 MHz. A good starting value for tps (assuming the nominal frequency) would be 18.158, and then adjust it to suit your system. There are three warnings, which can be removed by casting. Find the lines: lastsec = seconds % 60; lastmin = (seconds % 3600) / 60; lasthr = ((seconds % 86400L) / 3600L); and change them to: lastsec = (int)(seconds % 60); lastmin = (int)((seconds % 3600) / 60); lasthr = (int)((seconds % 86400L) / 3600L); to remove them. George * SLMR 2.1a * Computers eliminate spare time. --- Maximus/2 3.01* Origin: DoNoR/2,Woking UK (44-1483-717905) (2:440/4) SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 639/252 670/213 218 @PATH: 440/4 255/1 252/356 140/1 270/101 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.