user3555502
user3555502

Reputation: 329

Put value in random place in matrix

So I create an axb matrix with this function:

but I'm getting an error that's saying that my values are out of range. Is it because I use two equal signs instead of 1? Thanks

Upvotes: 1

Views: 69

Answers (1)

Brad Budlong
Brad Budlong

Reputation: 1785

board[row_index][col_index] == [val, False]

should be

board[row_index][col_index] = [val, False]

Upvotes: 2

Related Questions