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

2009-03-22 Thread Catherine Jones
Kevin Cozens wrote: >If you want to change the seed each time you start GIMP, >add '(srand (realtime))' before you call '(rand)'. Thanks. That solved my problem. -- Catherine ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.

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

2009-03-21 Thread Kevin Cozens
Catherine Jones wrote: > gimp -i -b '( ...)' -b '(gimp-quit 0)' > > always does the same thing (assuming the same variable inputs). Of course it would. You are starting a fresh copy of GIMP each time. If you want to change the seed each time you start GIMP, add '(srand (realtime))' before you

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

2009-03-21 Thread Catherine Jones
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 '( ...)' -b '(gimp-quit 0)' always does the same thing (assuming the same variable inputs). This is no