Junior
2007-02-18 02:13:04
WARNING: This is a stupid question!
Alrighty, I was thinking of something but I dont know the best way to do this. How do you make SCAR pick a random number between 2 numbers? Like if I had numbers starting from 200, and ending at 400, how would I make SCAR pick a random number in between? I was thinking about arrays, but is there anything better then that?
just made this, is this any good?
P.S.
I still cant get that bitmap mask to work, I talked about it in a earlier thread.
Alrighty, I was thinking of something but I dont know the best way to do this. How do you make SCAR pick a random number between 2 numbers? Like if I had numbers starting from 200, and ending at 400, how would I make SCAR pick a random number in between? I was thinking about arrays, but is there anything better then that?
just made this, is this any good?
program New;
{.include SRL/SRL.scar}
function betweennum(start, finish: integer): integer;
begin
result := start + random(finish - start);
end;
begin
writeln('random number from 200 to 400 is: ' + inttostr(betweennum(200, 400)));
end.P.S.
I still cant get that bitmap mask to work, I talked about it in a earlier thread.