What would Random(3); do?
Would that return a random integer from 0 to 2 or 1 to 3?
What would Random(3); do?
Would that return a random integer from 0 to 2 or 1 to 3?
I am pretty sure it is 1 to 3.
no, its 0 to 20 run this:
and you'll find outSCAR Code:program New;
var
hi : Integer;
begin
Hi := Random(3);
Writeln(IntToStr(Hi))
end.



0 to 2.
There are currently 1 users browsing this thread. (0 members and 1 guests)