[Gimp-user] script-fu "rand" function

Catherine Jones cathjone at eskimo.com
Sat Mar 21 15:10:30 PDT 2009


Hello,

When I use the "rand" function in a script-fu script that I run
non-interactively from the command line, I get the exact same result
every time. In other words, the command

gimp -i -b '(<script-name> <var 1> <var2> ...)' -b '(gimp-quit 0)'

always does the same thing (assuming the same variable inputs).

This is not the behavior I want. I'd like to be able to re-seed the
random number generator so as to get randomly different results. Is this
possible with script-fu? Thanks... Catherine



More information about the Gimp-user mailing list