First thing first! We need a random angle generator for our game. So let's begin with it. To create dynamic objects in GeoGebra, we should use "Commands." To access all commands, you can visit [url=https://wiki.geogebra.org/en/Commands]https://wiki.geogebra.org/en/Commands[/url][br][br]You can scroll through all commands, or you can use the search bar at the top. Let's search for RandomBetween command, and study how that command works.
Write a command that generates an integer between 0 and 180 that includes 180 but not 0.
[list][*]RandomBetween(1, 180)[br][/*][*]RandomBetween(1, 180, true)[br][/*][*]RandomBetween(0, 181, false)[br][/*][/list]
The video below present how to use a command with a button to generate random numbers and show it on the screen.