Home > Software Tutorial > Computer Software > The operation process of generating random numbers in Geometric Sketchpad

The operation process of generating random numbers in Geometric Sketchpad

WBOY
Release: 2024-04-17 12:50:12
forward
675 people have browsed it

Step 1 Draw a line segment AB, pick any point C on it, measure the ratio of the three points A, B, and C, and change the label to t. The value range of t is the closed interval of [0,1].

The operation process of generating random numbers in Geometric Sketchpad

Step 2 Select point C and execute [Edit] - [Operation Button] - [Animation] to generate an animated button named SJ.

The operation process of generating random numbers in Geometric Sketchpad

Step 3 Click button SJ, point c starts to move, and the value of t is constantly changing. We select line segment AB and point C and press [Ctrl H] to hide them.

The operation process of generating random numbers in Geometric Sketchpad

Step 4 Select button SJ and right-click to open the property setting dialog box. Set the animation mode to [Random] in the direction bar and click OK.

The operation process of generating random numbers in Geometric Sketchpad

Step 5 Click button SJ, the value of t is a random number between 0 and 1. With random numbers between 0 and 1, you can generate random numbers in any range, and you can further generate random integers.

The operation process of generating random numbers in Geometric Sketchpad

The above is the detailed content of The operation process of generating random numbers in Geometric Sketchpad. For more information, please follow other related articles on the PHP Chinese website!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template