home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib35a.dsk
/
OCTOBER.1988
/
MAKE.SOURCE.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
634b
|
17 lines
10 REM ***********************
20 REM * MAKE.SOURCE *
30 REM * BY RICHARD R. HIATT *
40 REM * COPYRIGHT(C) 1988 *
50 REM * MICROSPARC, INC. *
60 REM * CONCORD, MA 01742 *
70 REM ***********************
80 D$ = CHR$(4)
90 DIM N$(60),G(60,3)
100 M$ = "NAME.":T = RND( -1)
110 FOR I = 1 TO 60:N$(I) = M$ + STR$(I): NEXT
120 FOR I = 1 TO 60: FOR J = 1 TO 3:T = 0: FOR K = 1 TO 3:T = T +10 +90 * RND(1): NEXT
130 G(I,J) = INT(10 *T/3)/10: NEXT : NEXT
140 F$ = "SOURCE"
150 PRINT D$"OPEN"F$: PRINT D$"WRITE"F$
160 FOR I = 1 TO 60: PRINT N$(I): FOR J = 1 TO 3: PRINT G(I,J): NEXT : NEXT
170 PRINT D$"CLOSE"