I need to generate some random numbers everytime my TCL application is invoked and the value sent to the external system for some kind of auditing purpose. The format of the number must be integer. Is there any command within TCL to this. (The rand command gives random floating point numbers...
Hi Bob,
Let me explain it a bit more. Let's say we have the list:
set L {{A RED 1} {B BLACK 2} {C GREEN 3} {D PINK 4}}
Then I also have an array
set arrayA(A.RED.idx) 20
set arrayA(B.BLACK.idx) 50
set arrayB(C.BLUE.idx) 70
My aim is to build an array i.e., the output of the code is to have an...
Hi,
I am quite new to TCL and get confused a lot with lists and arrays. I have a problem wherein I need to search for a particular pattern in a list, extract the values from the list (The list has three elements) and build an array. The patterns to search are stored in an array.
E.g
List L= {A...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.