User Tools

Site Tools


prpl:randint

This is an old revision of the document!


<- PRPL reference <- Everything Else 2

RANDINT

ArgumentsResultNotation
Number 1, Number 2 Number [ i1 i2 - i3 ]

Description

Returns a random number from a range of two numbers exclusive of the max number.

Examples

	int max = GetIntFromStack(); 
	int min = GetIntFromStack(); 
	stack.Push(new Data(min+amt)); 
 
        0 10 RandInt ->Int  //Picks a random number between 0 and 10, will never pick 10. But can pick 0
        <-Int trace
prpl/randint.1482349566.txt.gz · Last modified: 2025/02/14 14:56 (external edit)