When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! def random_row(board_in):
a = randint(0,len(board_in) - 1)
i am currently doing an exercise on how to make a battleship game and when having to select a number randomly it tells me to include a negative 1 (-1), why?