[fpc-pascal] Bug in documentation for Random?

Bart bartjunk64 at gmail.com
Wed Apr 5 18:47:44 CEST 2017


On 4/5/17, Santiago A. <svaa at ciberpiula.net> wrote:

> random(-10)
> will output numbres -9..0

That was not realy the question.
The question is wether the documentation is wrong, or the
implementation or neither.

B.t.w. Delphi7 gives me:
Random(-10) = -776108169
Random(-10) = 244426112
Random(-10) = -1774796928
Random(-10) = 1443026331
Random(-10) = -919853036
Random(-10) = -747947900
Random(-10) = -1767321924
Random(-10) = -2114448955
Random(-10) = 1499268340
Random(-10) = -1658783534
(which makes no sense at all to me...)

Bart



More information about the fpc-pascal mailing list