Fixed number of digits from Token module random number
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);