(genome, **args)
Integer initialization function of G2DList

    This initializator accepts the *rangemin* and *rangemax* genome parameters.
Integer initialization function of G2DList
Integer initialization function of G2DList
def G2DListInitializatorInteger(genome, **args):
    """ Integer initialization function of G2DList

    This initializator accepts the *rangemin* and *rangemax* genome parameters.

    """
    genome.clearList()

    for i in xrange(genome.getHeight()):
        for j in xrange(genome.getWidth()):
            randomInteger = rand_randint(genome.getParam("rangemin", 0),
                                         genome.getParam("rangemax", 100))
            genome.setItem(i, j, randomInteger)
def G2DListInitializatorInteger ( genome , * * args ) : genome . clearList ( ) for i in xrange ( genome . getHeight ( ) ) : for j in xrange ( genome . getWidth ( ) ) : randomInteger = rand_randint ( genome . getParam ( "rangemin" , 0 ) , genome . getParam ( "rangemax" , 100 ) ) genome . setItem ( i , j , randomInteger )