Lets say I'm using template toolkit to create command sets for my cisco-ios
tests.  I have a command that will take a range of values as acceptible
numbers like:

access untagged vlan 3

What if I want my test to generate a random number between 2-122?

access untagged vlan [% WHAT GOES HERE %]?

Is there a random number generator I have access to inside of the template?
Do I need to use a Perl block?  What if I wanted a random number from a list
of 5?  Just looking for suggestions on ways of randomizing template values.

Thanks in advance!!!
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to