Https://www.codecademy.com/courses/learn-python/lessons/battleship/exercises/hide

https://www.codecademy.com/courses/learn-python/lessons/battleship/exercises/hide

I don’t understand the purpose of this radint function as applied in the battleship exercise
Someone please kindly help as it will be greatly appreciated

Thank you
Jagmeet

Hey there @jagmeetsond589256300 :grinning:

I am not sure since I can’t see the code in your screenshot, but I would guess it is either to place ships randomly, or so that the computer can choice random points to look for your ships.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.