Placing Elements in a Matrix Grid Randomly