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

Glynn Clements glynn at gclements.plus.com
Tue Jul 22 13:58:43 PDT 2014

Markus Neteler wrote:

> - if the user needs reproducability, then have a env var to enable that.

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.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list