SMM++ provides access to tcl's expr-command via the #math command. Among various things expr can produce random numbers.
You can find the expr. docu in your SMM++-distribution: docu/html/manExpr.html or a link to it, where the #math command is described
taken from there:
I guess that will cover all needs;)
so,.. how does it look in SMM:
#nop --- random number [0,1) #math x "rand()" #nop --- random number [0,10) #math x "rand()*10" #nop --- random int number 0-9 #math x "int(rand()*10) #nop --- random int number 1-10 #math x "int(rand()*10)+1" #nop --- round a number to the nearest int: #variable y 5.345 #math x "int($y+0.5)" #showme $x #variable y 5.545 #math x "int($y+0.5)" #showme $x
You can advise SMM++ to have the mapping part in a separate window. You have to choose this before startup. Once SMM++ is started your setting cannot be changed.
In your 'smm', 'smm.itk' or 'smm.ITkW' you will find a line
set SMMMAPWINDOW 0change it to
set SMMMAPWINDOW 1and you get a separate mapping window. If you want to have both settings without having to edit the file over and over again, just spend another startup file which has the other setting. Name it however you like it. Just be sure that the extension is the same. For unix systems you must make the file executable
chmod +x <filename>