[fpc-pascal] random numbers negative

waldo kitty wkitty42 at windstream.net
Tue Aug 16 20:03:05 CEST 2011


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;

;)




More information about the fpc-pascal mailing list