I'm trying to make a minesweeper with python. Now I'm trying to insert 10 mines into the lists randomly. Please help me to figure it out!
import random
import numpy as np
from random import randint
#assign a value of mines and create 8 x 8 empty array.
mines = 1000
arr1 = np.empty((8,8))
#insert 10 mines into random lists.
z = 1
if z < 11 :
np.append(arr1, np.array(random.randint[mines]))
z = z + 1