Forum Discussion
pedinopa_170325
Nimbostratus
Feb 12, 2018fun with irule
I am working on an excersise to insert random quotes into http headers. I have an irule that uses data groups and if your subnet is in the DG a header with a specific quote is inserted, if your IP s...
JG
Cumulonimbus
Feb 13, 2018You can have a DG of quotes keyed by numbers, and then generate a random number as the key. If you have, say, 10 quotes, you can get a random number like this:
expr {int(rand()*10)}
.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
