t) = 0) Then
            m_cells(iNextIndex, i) = 1
         Else
            m_cells(iNextIndex, i) = 0
         End If
      Else
         ' output is black if me or next is black:
         If (m_cells(m_iIndex, i) = 0) Or (m_cells(m_iIndex, iNext) = 0) Then
            m_cells(iNextIndex, i) = 0
         Else
            m_cells(iNextIndex, i) = 1
         End If
      End If
      
      iPrev = i
   Next i
         
   m_iIndex = iNextIndex
   nextRandom = m_cells(iNextIndex, m_lSize \ 2)
   
End Funct