[fpc-pascal] random numbers negative

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


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




More information about the fpc-pascal mailing list