AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages! You are not logged in. Login here for full access privileges. |
Previous Message | Next Message | Back to BAT Magic <-- <--- | Return to Home Page |
|
||||||
From | To | Subject | Date/Time | |||
Visitor | ALL | Random numbers |
October 15, 1995 2:30 AM * |
|||
Bat Magic disappeared from this BBS a few days ago, and has now reappeared as part of a new message base. Maybe I did't miss too many good batch file solutions during that time! --- Here is a little program for generating a random number between 0 and 99. Sample batch: @echo off RAND > RandNum.bat call RandNum echo The random number placed in the environment is %RAND%. -+[Cut here]+---------------------------------------------------------- n RAND.COM a MOV AH,2C INT 21h ;Time MOV AL,DL PUSH AX PUSH AX MOV AX,CS MOV DS,AX ;DS_SGMT_CHG MOV AH,09 MOV DX,0135 INT 21 ;Display_String POP AX XOR AH,AH MOV BX,000A MOV CX,0002 XOR DX,DX DIV BX ADD DX,+30 PUSH DX LOOP 11C MOV CX,0002 MOV AH,02 POP DX INT 21 ;Display_Output LOOP 12B POP AX MOV AH,4C INT 21 ;TERM_w_RtnCde DB "SET RAND=$",00 DB D,A,"BatMagic" r cx 4A w q -+[Cut here]+---------------------------------------------------------- Save the script between the hash marks to an ASCII file. At the DOS prompt enter, "DEBUG < filename" where "filename" is the name of the saved ASCII file. ___ Blue Wave/QWK v2.12 |
||||||
|
Previous Message | Next Message | Back to BAT Magic <-- <--- | Return to Home Page |
Execution Time: 0.0156 seconds If you experience any problems with this website or need help, contact the webmaster. VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved. Virtual Advanced Copyright © 1995-1997 Roland De Graaf. |