<div dir="ltr"><div><div>Hello,<br><br></div>it seems that r.mapcalc gives different (pseudo-)random result on MS Windows then it is giving on Linux. In NC sample dataset:<br><br>g.region n=20 s=10 e=25 w=15 res=1<br>r.mapcalc "rand_cell = rand(1, 200)" seed=500<br><a href="http://r.info">r.info</a> rand_cell -r<br><br></div>gives the following on Linux:<br><div><br>min=1<br>max=195<br><br></div><div>while on MS Windows it gives:<br><br>min=1<br>max=196<br><br></div><div>The test for r.mapcalc seed fails on MS Windows 8.1 (64bit) [1] but the results are even worse, so I'm not sure what exactly is the issue there:<br><br>    mismatch values (key, reference, actual): [('max', 0, 80), ('min', 0, -119)]<br><br>Can somebody confirm this behavior and/or test it on different platforms?<br></div><div><br>Both the individual commands and the tests needs to be executed. The test can be executed using:<br><br></div><div>cd raster/r.mapcalc/testsuite</div><div>python test_r_mapcalc.py</div><div><div><div>(g.remove rand_cell)</div><div><br></div><div>On Linux, I'm getting the same manually and from the test [2]. The thing which is extra in the tests is the import from ASCII. There are similar tests for r.mapcalc and seed but the only test which is failing is the one with type CELL.<br><br></div><div>Vaclav<br></div><div><br>[1] <a href="http://fatra.cnr.ncsu.edu/grassgistests/mswindows/reports_for_date-2015-02-18-21-00/report_for_nc_spm_08_grass7_nc/raster/r.mapcalc/test_r_mapcalc/index.html">http://fatra.cnr.ncsu.edu/grassgistests/mswindows/reports_for_date-2015-02-18-21-00/report_for_nc_spm_08_grass7_nc/raster/r.mapcalc/test_r_mapcalc/index.html</a><br><br>[2] <a href="http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-02-18-08-00/report_for_nc_spm_08_grass7_nc/raster/r.mapcalc/test_r_mapcalc/index.html">http://fatra.cnr.ncsu.edu/grassgistests/reports_for_date-2015-02-18-08-00/report_for_nc_spm_08_grass7_nc/raster/r.mapcalc/test_r_mapcalc/index.html</a><br><br>[3] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.mapcalc/testsuite/test_r_mapcalc.py">https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.mapcalc/testsuite/test_r_mapcalc.py</a><br></div></div></div></div>