It seems that sampleRandom isn't so random.

# try this :
library(raster)
r <- raster(matrix(1:25, 5, 5))
sampleRandom(r, 25)
## 1 6 11 16 21 2 7 12 17 22 3 8 13 18 23 4 9 14 19 24 5 10 15
sampleRandom(r, 25)
## 1 6 11 16 21 2 7 12 17 22 3 8 13 18 23 4 9 14 19 24 5 10 15

I haven't seen any documentation about this behavior.

Etienne

	[[alternative HTML version deleted]]

