Searched defs:random (Results 1 - 21 of 21) sorted by relevance

/inkscape/share/extensions/
H A Dtext_randomcase.py4 import random namespace
15 a = random.choice([-2,-1,1])
17 a = random.choice([-1,1,2])
H A Dcolor_HSL_adjust.py4 import random namespace
48 hsl[0] = random.random()
53 hsl[1] = random.random()
58 hsl[2] = random.random()
H A Dcolor_randomize.py3 import random namespace
43 return random.randrange(min, max) / 255.0
74 ret = str(random.uniform(min,max)/100)
H A Dfractalize.py19 import random, math, inkex, simplepath namespace
36 """ Scale perpendicular vector by random factor """
37 r = random.uniform(-length/(1+smoothness),length/(1+smoothness))
H A Dlorem_ipsum.py24 import random namespace
202 scount=random.randint(_min,_max)
209 text+=foo[random.randint(0,len(foo)-1)]
H A Drtree.py20 import inkex, simplestyle, pturtle, random namespace
27 turn = random.uniform(20, 40)
29 rtree(turtle, size*random.uniform(0.5,0.9), min, pt)
31 turn = random.uniform(20, 40)
33 rtree(turtle, size*random.uniform(0.5,0.9), min, pt)
H A Dmarkers_strokepaint.py21 import random namespace
H A Dradiusrand.py19 import random, math, inkex, cubicsuperpath namespace
23 r = abs(random.normalvariate(0.0,0.5*max(rx, ry)))
25 r = random.uniform(0.0,max(rx, ry))
26 a = random.uniform(0.0,2*math.pi)
H A Dlindenmayer.py19 import inkex, simplestyle, pturtle, random namespace
77 self.turtle.fd(self.options.step * (random.normalvariate(1.0, 0.01 * self.options.randomizestep)))
80 self.turtle.fd(self.options.step * (random.normalvariate(1.0, 0.01 * self.options.randomizestep)))
82 self.turtle.lt(self.options.langle * (random.normalvariate(1.0, 0.01 * self.options.randomizeangle)))
84 self.turtle.rt(self.options.rangle * (random.normalvariate(1.0, 0.01 * self.options.randomizeangle)))
H A Drestack.py24 import inkex, os, csv, math, random namespace
203 random.shuffle(objects)
H A Dpathalongpath.py37 import random namespace
H A Dvoronoi2svg.py39 import random namespace
359 random.seed("inkscape")
368 if self.options.delaunayFillOptions == "delaunay-fill" or self.options.delaunayFillOptions == "delaunay-fill-random":
370 'stroke' : fills[triangle[random.randrange(0, 2)]],
372 'fill' : fills[triangle[random.randrange(0, 2)]],
H A Dcoloreffect.py22 import random namespace
105 newid = '%s-%d' % (id, int(random.random() * 1000))
139 newhref = '%s-%d' % (id, int(random.random() * 1000))
H A Dgenerate_voronoi.py24 import random namespace
107 pattern.set('id', 'Voronoi' + str(random.randint(1, 9999)))
113 # generate random pattern of points
118 x = random.random()*q['width']
119 y = random.random()*q['height']
H A Dpathmodifier.py34 import random namespace
81 id="%s%04i"%(prefix,random.randint(0,9999))
83 id="%s%04i"%(prefix,random.randint(0,9999))
H A Dpathscatter.py37 import random namespace
129 help="group pick mode (rand=random seq=sequentially)")
278 clone=copy.deepcopy(patternList[random.randint(0, len(patternList)-1)])
286 myid = patternList[random.randint(0, len(patternList)-1)].tag.split('}')[-1]
H A Dinkex.py33 import random namespace
291 new_id += random.choice('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
H A Drender_alphabetsoup.py26 import random namespace
259 def generate( state ): # generate a random tree (in stack form)
265 path = random.randint(0, (len(syntax[state][1])-1)) # choose randomly from next states
287 substack = generate( state ) # generate random substack
288 return draw( substack ) # draw random substack
337 stack = string.split( alphabet[char][random.randint(0,(len(alphabet[char])-1))] , "." )
338 #stack = string.split( alphabet[char][random.randint(0,(len(alphabet[char])-2))] , "." )
346 def generate_random_string( tokens, zoom ): # generate a totally random glyph for each glyph in the input string
515 help="Generate random (unreadable) text")
H A Dgcodetools.py82 import random namespace
3028 random.shuffle(order)
3030 specimen += [ [j, random.random(), random.random()] ]
3058 i1 = random.randint(0,len(self.population)-1)
3083 parent1 = random.randint(0,parent_count-1)
3084 parent2 = random.randint(0,parent_count-1)
3102 # if random
[all...]
/inkscape/share/extensions/test/
H A Drender_barcode.test.py9 import random namespace
/inkscape/src/extension/dbus/
H A Dpytester.py10 import random namespace
17 document.rectangle( random.randint(0,1000),
18 random.randint(0,1000),
19 random.randint(1,100),
20 random.randint(1,100))

Completed in 6561 milliseconds