added random elements generator to grid cells