simple numeric token string 2 max 3 digits I need to generate numeric string and append it at the end of node url. Tried using some token random number options but the result is 10 digit number which is not neccessary for my purpose. Is there any other option? Node NID is not possible to use. Thank you
$length = 3; // character length
$token = substr(drupal_hmac_base64($node-&gt;nid, drupal_get_private_key() . drupal_get_hash_salt()), 0, $length);