Base Tag Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

random_number

Generates a random number with a few parameters to customise your results

Example

[%random_number length:'5'/%]

random_number Parameters

Name Options Description
length:'' Integer This is a required param to set the length of the number generated
timestamp:'' 1/0 Can be used instead of the length param or along side it. Generates a number with the time stamp.
id:'' String Used to duplicate results on the page, if you have two random_number tags with the same ID, the resulting random number string will be the same on both.
min:'' Integer The shortest length the resulting number can be. Can not be used with the length param
max:'' String The longest length the resulting number can be. Can not be used with the length param
fix:'' 1 / 0 When true it will force the length of the result to be exactly the length param. Can not be used with the min/max params