Logo Search packages:      
Sourcecode: jack version File versions  Download package

def lifedemo::LifeBoard::makeRandom (   self  ) 

Fill the board with a random pattern

Definition at line 114 of file lifedemo.py.

00114                         :
      """Fill the board with a random pattern"""
      import whrandom
      for i in range(0, self.M): 
          for j in range(0, self.N):
            if whrandom.random()*10>5.0: self.set(j,i)

def erase_menu(stdscr, menu_y):

Generated by  Doxygen 1.6.0   Back to index