Hello everyone,
I'm wondering if there is any function i can use to generate a timestamp in tcl script?
And if there is any other function to generate a random number in a given range?
Please help and thank you!
Code: Select all
set random [expr { int(100 * rand()) }]
Code: Select all
set timestamp [clock seconds]
http://www.eggheads.org/support/egghtml ... mands.htmlkennycheung21 wrote:Hello everyone,
I'm wondering if there is any function i can use to generate a timestamp in tcl script?
Same place - tcl-commands.doc - and check out:
And if there is any other function to generate a random number in a given range?