Skip to content

Commit 66672d7

Browse files
baharmonpetrasovaa
andauthored
Update content/tutorials/map_algebra/basic_map_algebra.qmd
Co-authored-by: Anna Petrasova <[email protected]>
1 parent a28aaf9 commit 66672d7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

content/tutorials/map_algebra/basic_map_algebra.qmd

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,14 +399,8 @@ r.mapcalc expression="random = rand(0.0, 10.0)" seed=0
399399
```
400400
## Python
401401
```{python}
402-
# Import library
403-
import random
404-
405-
# Set random seed
406-
seed = random.randint(0, 1000000)
407-
408402
# Generate random surface
409-
gs.mapcalc("random = rand(0.0, 10.0)", seed=seed)
403+
gs.mapcalc("random = rand(0.0, 10.0)", seed=0)
410404
411405
# Visualize
412406
m.d_rast(map="random")

0 commit comments

Comments
 (0)