r.surf.random(1)
r.surf.random πβ¨
okay bestie, gather round, because this is the GRASS GIS manual page for r.surf.random(1) and honestly? it's giving random-number-queen. π
πΈ NAME πΈ
r.surf.random β produces a raster surface map of uniform random deviates with defined range. literally it just makes you a whole raster full of random numbers, and you get to say how big they're allowed to be. π
π KEYWORDS π
raster, surface, random
β¨ SYNOPSIS β¨
r.surf.random
r.surf.random --help
r.surf.random [-i] output=name [min=float] [max=float]
[seed=integer] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π¦ Flags:
-iβ create an integer raster map. whole numbers only bestie, no decimals allowed π--overwriteβ lets your output files just bulldoze whatever was already there. overwrite existing files, permission granted. π--helpβ prints the usage summary, aka the "wait what do I type" button π«Ά--verboseβ verbose module output. it's gonna talk. a lot. π£οΈ--quietβ quiet module output. shhh. π€«--uiβ force launches the GUI dialog, for when you want the pretty little clicky interface β¨
π Parameters:
output=nameβ [required] the name for your output raster map. yes you have to name it. name your baby. πΆmin=floatβ minimum random value. default is0. this is the floor, the low bar, the bare minimum π§max=floatβ maximum random value. default is100. this is the ceiling, the limit, the you-can't-sit-with-us βseed=integerβ the seed for the random number generator. you can reuse the same seed to get the exact same results again (reproducibility slay π ), or you can generate a random seed by other means if you're feeling chaotic.
π DESCRIPTION π
r.surf.random produces a raster map layer of uniform random deviates whose range can be expressed by the user. so like β you make a raster, it's full of random numbers, and you decide the range. main character energy, truly.
it is essentially the same as r.surf.gauss, but it uses a linear random number generator instead. so if r.surf.gauss is the artsy one with the bell curve, r.surf.random is the flat, even, everybody-gets-equal-chance one. π²
ngl the fun detail: it uses the random number generator drand48() or rand(), depending on the user's platform. so it's platform-dependent, iykyk. π₯
π EXAMPLE π
here's the whole vibe, copy-paste ready:
g.region -p n=228500 s=215000 w=630000 e=645000 res=10
r.surf.random out=random min=0 max=100
# check result
r.univar random
Figure: Random surface example (min: 10; max: 100)
and with the histogram tool the cell values versus count can be shown. so you can literally see your randomness being random. obsessed. π
Figure: Histogram of random surface example (min: 10; max: 100)
π SEE ALSO π
r.random.surfacer.surf.contourr.surf.fractalr.surf.gaussr.surf.idwv.surf.rst
go read those too, the whole surf family ate. π
π AUTHOR π
Jo Wood Midlands Regional Research Laboratory (ASSIST) University of Leicester October 1991
like, 1991?? the longevity. the legacy. iconic behavior fr fr. π
π» SOURCE CODE π»
Available at: r.surf.random source code (history)
Accessed: Saturday Jan 17 05:41:02 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie, no cap, every flag and every number intact π
okay bye, this was r.surf.random(1) from GRASS 8.4.2, written by the GRASS Development Team with the reference manual copyright Β© 2003-2025, and accessed Saturday Jan 17 05:41:02 2026. go make some random rasters, you absolute legend πβ¨π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms