Google Classroom
GeoGebraGeoGebra Classroom

Creating Random Angle Generator

GeoGebra Commands

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 https://wiki.geogebra.org/en/Commands 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.

RandomBetween Command

Write a command that generates an integer between 0 and 180 that includes 180 but not 0.

RandomBetween Command

The video below present how to use a command with a button to generate random numbers and show it on the screen.

RandomBetween Command, Variables, and Buttons