{$RAND}

Post

Posted
Rating:
#4807 (In Topic #971)
Joe

Setting highest number

In the Tempcode programming tutorial, {$RAND} doesn't appear to support any parameters within the table listing. However, in the example of number randomization located here, it details how a parameter may be passed into the symbol so that a random number is chosen between 0 and the parameter defined within the symbol.

Upon testing, {$RAND,40} seemed to return some incredibly long number.

Is it possible, maybe via an alternate method, to return a random number between 0 and 40?

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Joe)
#4813
1 guest and 0 members have recently viewed this.