Answer:
Python code explained below
Step-by-step explanation:
import random #importing random library
def initialize_board(noOfSpot=32,seedIn=9):
#function with default spots set as 32
#default seed set as 9
random.seed(seedIn)
gameBoard = [] #initialising gameBoard list with empty values
for i in range(noOfSpot):
gameBoard.append(random.randint(0,1))
#adding values to gameBoard
return gameBoard
board =initialize_board(10,2)
print(board)