User Tools

Site Tools


crpl:docs:randcoords

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:randcoords [2013/01/14 14:11] – external edit 127.0.0.1crpl:docs:randcoords [2018/08/06 21:01] (current) – 0 <= RandNum < Map Width is not true for random Y stellatedHexahedron
Line 1: Line 1:
 +<- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#utility_commands|Utility Commands]]
 =====  RandCoords  ===== =====  RandCoords  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| |Random Map X and Y coords |''"-- X1 Y1 ''|+| |Random Map X and Y coords |''-- X1 Y1 ''|
  
  
 === Description === === Description ===
-Pushes two random integers to stack where 0 <= RandNum < Map Width.+Pushes two random integers to stack where 0 %%<=%% RandNum < Map Width for the first and 0 %%<=%% RandNum < Map Height for the second.
 === Examples === === Examples ===
-<code>example goes here</code> +Every second, add 32 creeper to a random cell. 
 +<code> 
 +GetTimer0 eq0 if 
 + 30 SetTimer0 
 + 
 + RandCoords 32 AddCreeper 
 +endif 
 +</code> 
  
  
crpl/docs/randcoords.1358190663.txt.gz · Last modified: 2014/10/01 15:02 (external edit)