home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
randbmp.zip
/
RANDBMP.BAS
next >
Wrap
BASIC Source File
|
1990-04-10
|
357b
|
26 lines
DEFINT A-Z
DIM BMP$(100)
RANDOMIZE TIMER
CALL EXIST("BMP.LST", FOUND)
IF NOT FOUND THEN END
OPEN "BMP.LST" FOR INPUT AS #1
WHILE NOT EOF(1)
A = A + 1
INPUT #1, BMP$(A)
WEND
NEWBMP = INT(RND * A) + 1
CALL EXIST(BMP$(NEWBMP), FOUND)
IF NOT FOUND THEN END
SHELL "COPY " + BMP$(NEWBMP) + " BGRD.BMP > NUL"
END