[fpc-pascal] random numbers negative

Luis Fernando Del Aguila Mejía aguila3000 at gmail.com
Tue Aug 16 17:25:49 CEST 2011


I have a doubt.
With the random function, Can you generate random numbers negative?

Begin
randomize;
Writeln (random (-127)) / / 0> = n> -127
End.

thanks.



More information about the fpc-pascal mailing list