User Tools

Site Tools


crpl:docs:randint

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
crpl:docs:randint [2013/01/14 14:06] – created chanicrpl:docs:randint [2015/03/19 17:24] – added example warren
Line 1: Line 1:
-TODO+<- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#utility_commands|Utility Commands]] 
 +=====  RandInt  ===== 
 + 
 +^Arguments^Result^Notation^ 
 +|Min, Max|Random Integer |''n1 n2 -- n2 ''
 + 
 + 
 +=== Description === 
 +Pops Min and Max from the stack and pushes a random integer to stack where min %%<=%% RandInt < max. 
 +=== Examples === 
 +<code> 
 +#Creates a dancing number readout. Very high tech hackery. 
 +0 10 RandInt 
 +    0 10 RandInt concat 
 +    0 10 RandInt concat 
 +    0 10 RandInt concat 
 +    SetPopupText 
 +     
 +:awake 
 +  TRUE OperateWhilePaused 
 +</code>  
 + 
crpl/docs/randint.txt · Last modified: 2020/05/28 05:42 by WithersChat