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,
"0123456789" is the default value for "chars" if not passed explicitly. In the end, the proc can be called by using either:
[call library::randomNumberGenerator 10]
or
[call library::randomNumberGenerator 10 12345]
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