[fpc-devel] Different results of random(int32) and random(int64) for negative limit value

Jonas Maebe jonas at freepascal.org
Wed May 24 20:10:15 CEST 2017


On 24/05/17 09:35, Thaddy de Koning wrote:
> The implementation is _*not *_undefined for negative values,_unless you 
> say that you define it as undefined_.

That is exactly what "undefined" means: the implementation was not 
designed to handle such values, so whatever you get as a result is 
undefined.


Jonas



More information about the fpc-devel mailing list