Thread
:
QBasic - The purpose of FUNCTION and SUB
View Single Post
Dec 2nd, 2006, 7:53 AM
#
12
Arevos
Programming Guru
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power:
5
Also, you probably want something more like:
(
Toggle Plain Text
)
%hit = gethit%() FUNCTION gethit%() RANDOMIZE TIMER gethit% = INT(RND * 20) + 1 END FUNCTION
%hit = gethit%() FUNCTION gethit%() RANDOMIZE TIMER gethit% = INT(RND * 20) + 1 END FUNCTION
Arevos
View Public Profile
Visit Arevos's homepage!
Find More Posts by Arevos