home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC User 2001 August
/
APC_Aug2001_CD2.iso
/
features
/
devtools
/
files
/
lb202win.exe
/
LB202W.EXE
/
GLBLARRY.BAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
BASIC Source File
|
2000-03-03
|
334 b
|
17 lines
'fill and display an array with a random quantity of
'numbers
dim numbers(100)
count = fillRandomly()
for x = 1 to count
print numbers(x)
next x
end
function fillRandomly()
fillRandomly = int(rnd(1)*100)+1
for x = 1 to fillRandomly
numbers(x) = int(rnd(1)*fillRandomly)+1
next x
end function