[GRASS-dev] using rand(x,y) in r.mapcalc (grass7)

Markus Neteler neteler at osgeo.org
Tue Jul 22 14:31:53 PDT 2014

On Tue, Jul 22, 2014 at 11:19 PM, Paulo van Breugel wrote:
> On 22-07-14 22:58, Glynn Clements wrote:
>> And when issue of usability doesn't even get considered until a few
>> years later when the user (or a colleague) gets an email suggesting
>> the results can't be be reproduced ...?
>> I'm inclined to add both an option (to specify a seed, replacing the
>> environment variable) and a flag (to seed from the system clock or
>> whatever), and having the PRNG generate a fatal error if neither of
>> those are used.
>> That way, neither of the likely problems can arise by oversight.
> I guess there is a lot to say for both approaches, which is why I think the
> suggestion of Markus is a very good one!  +1 from me

It is indeed Glynn's suggestion (which I like, too).


More information about the grass-dev mailing list