Commits

bworkman  committed de37bc4

add random number generator

  • Participants
  • Parent commits 0ae30c4

Comments (0)

Files changed (1)

 from gimpfu import *
+from random import *
 import gtk
 import os
 import collections
         if("" == ofstr) :
                 return None
 
-        MessageBox(None, "directory:%s"%ofstr, "Your moms a rabbit", 0)
+        plugins = gimp.pdb.query()
+        i = (int) (len(plugins) * random())
+
+        MessageBox(None, "directory:%s\nplug-ins:%d\nrandom:%d"%(ofstr, len(plugins), i), "Your moms a rabbit", 0)
 
 
         return None