Tutorial - Math.GetRandomNumber RRS feed

  • General discussion

  • At the end of the Tutorial to learn about the Math Object the challenge was to:
    1: By using the GetRandomNumber operation, write a program to move and rotate a rectangle in a random manner.
    2: Write a program to draw circles of different sizes in the graphics window. Set the size of the circle by using its area, and randomize the x-coordinates and y-coordinates of the circle.

    My solution: ZLG240

    Monday, January 28, 2019 11:33 AM

All replies

  • Hi iPotato, thank you for sharing your solution.  My comments for your program: 

    • Nice usage of Math.GetRandomNumber().
    • Good calculation from a circle area to the radius.
    • Check the size of ellipse.  That will be the diameter.

    Nonki Takahashi

    Tuesday, January 29, 2019 1:38 PM