Parent Directory | Revision Log | Patch
revision 1.10 by jvk, Mon Sep 30 16:23:21 2002 UTC | revision 1.11 by jvk, Thu Oct 3 13:48:00 2002 UTC | |
---|---|---|
# | Line 52 def getPaperTexture(type, gen): | Line 52 def getPaperTexture(type, gen): |
52 | ||
53 | class Textures: | class Textures: |
54 | def __init__(self, seed): | def __init__(self, seed): |
55 | rnd = self.rnd = java.util.Random(seed) | rnd = java.util.Random(seed) |
56 | ||
57 | hyper = rnd.nextGaussian()*5 | hyper = rnd.nextGaussian()*5 |
58 | ||
# | Line 76 class Textures: | Line 76 class Textures: |
76 | def getPaperTexture(self, type, gen): | def getPaperTexture(self, type, gen): |
77 | index = 0 | index = 0 |
78 | ||
79 | t = self.rnd.nextDouble() | t = gen.nextDouble() |
80 | ||
81 | for p in self.probs[type]: | for p in self.probs[type]: |
82 | t -= p | t -= p |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |