Generates a matrix of ones and zeros
[A]=genzero(m,n,P)
number of lines
number of columns
probability for live cell or a grid pattern
generated matrix
genzero generates a matrix of ones and zeros of m lines and n columns. If probability for live cell if given, the values of individual cells are computed accordingly. If the grid pattern is assingned by strings 'block', 'glider', 'blinker', 'toad' or 'beacon' matrix is generated with the pattern at its superior left corner. genzero is a main function of the game_of_life package for Scilab.