I have the following function in my program:
function Getrand(rStart,rEnd:Integer): Integer; var diff: Integer; begin diff := rEnd - rStart; Getrand := Random(diff) + rStart; end;
When I try to compile a program, I get this error:
Failed when compiling Line 27: [Error] (27:9): Invalid number of parameters in script
What am I doing wrong?
pascal
Click upvote
source share