original_docstring: removes n ~random~ numbers from a given board
docstring: removes n ~random~ numbers from a given board
docstring_tokens: removes n ~random~ numbers from a given board
code: def create_from_solution(n, board):
      'removes n ~random~ numbers from a given board'
      game = deepcopy(board)
      a = np.random.choice(81, n, replace=False)
      for i in a:
          m, n = divmod(i, 9)
          game[m][n] = 0
      return game
code_tokens: def create_from_solution ( n , board ) : game = deepcopy ( board ) a = np . random . choice ( 81 , n , replace = False ) for i in a : m , n = divmod ( i , 9 ) game [ m ] [ n ] = 0 return game
short_docstring: removes n ~random~ numbers from a given board
short_docstring_tokens: removes n ~random~ numbers from a given board
comment: 'removes n ~random~ numbers from a given board'