Forum Discussion
dragonflymr
Dec 10, 2015Cirrostratus
proc - how to interpret
Hi,
I am puzzled what is exact purpose of char declaration in proc below (from
proc randomNumberGenerator {length {chars "0123456789"}} {
set range [expr {[string length $chars]-1}]
set txt...
Kai_Wilke
Dec 10, 2015MVP
Hi Piotr,
the proc simply outputs "$length" times a "rand()" position from "$chars". So any alphanumeric charater may be used as input.
Cheers, Kai
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