On 8/16/2011 12:05, Felipe Monteiro de Carvalho wrote:
Another idea:
-1 * Random(127);
this was what i was thinking of as it doesn't limit the number to any particular
size as the following seems to do...
random(128)-127;
what would happen with this?
random(4096)-127;
;)
___
On 8/16/2011 11:54, Luis Fernando Del Aguila Mejía wrote:
thansk
El 16/08/2011 10:36 a.m., Jonas Maebe escribió:
On 16 Aug 2011, at 17:25, Luis Fernando Del Aguila Mejía wrote:
I have a doubt.
With the random function, Can you generate random numbers negative?
Begin
randomize;
Writeln (rando
Another idea:
-1 * Random(127);
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
thansk
El 16/08/2011 10:36 a.m., Jonas Maebe escribió:
On 16 Aug 2011, at 17:25, Luis Fernando Del Aguila Mejía wrote:
I have a doubt.
With the random function, Can you generate random numbers negative?
Begin
randomize;
Writeln (random (-127)) / / 0> = n> -127
End.
random(128)-127;
Jonas
I have a doubt.
With the random function, Can you generate random numbers negative?
Begin
randomize;
Writeln (random (-127)) / / 0> = n> -127
End.
thanks.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/l