| 1 |
<h2>DESCRIPTION</h2> |
| 2 |
|
| 3 |
<b>r.surf.random</b> produces a raster map layer of uniform random deviates |
| 4 |
whose range can be expressed by the user. It is essentially the same as |
| 5 |
<em>r.surf.gauss</em>, but uses a linear random number generator instead. |
| 6 |
It uses the random number generator drand48() or rand()<!-- cite? -->, |
| 7 |
depending on the user's platform. |
| 8 |
|
| 9 |
<h2>EXAMPLE</h2> |
| 10 |
|
| 11 |
<div class="code"><pre> |
| 12 |
g.region -p n=228500 s=215000 w=630000 e=645000 res=10 |
| 13 |
r.surf.random out=random min=0 max=100 |
| 14 |
|
| 15 |
# check result |
| 16 |
r.univar random |
| 17 |
</pre></div> |
| 18 |
|
| 19 |
<!-- |
| 20 |
d.legend -d raster=random@user1 title=random font=Vera |
| 21 |
--> |
| 22 |
|
| 23 |
<div align="center" style="margin: 10px"> |
| 24 |
<a href="r_surf_random.jpg"> |
| 25 |
<img src="r_surf_random.jpg" width="600" height="293" alt="r.random.surface example (min: 10; max: 100)" border="0"> |
| 26 |
</a><br> |
| 27 |
<i>Figure: Random surface example (min: 10; max: 100)</i> |
| 28 |
</div> |
| 29 |
|
| 30 |
<p> |
| 31 |
With the histogram tool the cell values versus count can be shown. |
| 32 |
<p> |
| 33 |
<div align="center" style="margin: 10px"> |
| 34 |
<a href="r_surf_random_hist.png"> |
| 35 |
<img src="r_surf_random_hist.png" width="600" height="280" alt="r.random.surface example histogram (min: 10; max: 100)" border="0"> |
| 36 |
</a><br> |
| 37 |
<i>Figure: Histogram of random surface example (min: 10; max: 100)</i> |
| 38 |
</div> |
| 39 |
|
| 40 |
<h2>SEE ALSO</h2> |
| 41 |
|
| 42 |
<em> |
| 43 |
<a href="r.random.surface.html">r.random.surface</a>, |
| 44 |
<a href="r.surf.contour.html">r.surf.contour</a>, |
| 45 |
<a href="r.surf.fractal.html">r.surf.fractal</a>, |
| 46 |
<a href="r.surf.gauss.html">r.surf.gauss</a>, |
| 47 |
<a href="r.surf.idw.html">r.surf.idw</a>, |
| 48 |
<a href="v.surf.rst.html">v.surf.rst</a> |
| 49 |
</em> |
| 50 |
|
| 51 |
<h2>AUTHOR</h2> |
| 52 |
|
| 53 |
Jo Wood<br> |
| 54 |
Midlands Regional Research Laboratory (ASSIST)<br> |
| 55 |
University of Leicester<br> |
| 56 |
<i>October 1991</i> |