Fixed number of digits from Token module random number I want to use the Token module random number generator, but it says use [random:number] to generate "A random number from 0 to 2147483647". 

How can I change this and get fixed number of digits? For example, I need a 4 digits in each generated number (1000 to 9999). Or only 3 digits in each number (from 001 to 100).
You could use modular arithmetic.

$token_random; // This is the value returned from the Token module
$my_random = ($token_random % 9999);


Or if you need the 3 digit value: 

$my_random = ($token_random % 100);