Undo trigering updateconstruction

bungkusdias shared this question 1 year ago
Answered

hi, I'm trying to make an applet that involves random numbers (eg a). But if I click the undo button, why does the a value change automatically?

Best Answer
photo

Change

(RandomBetween(4, 8), 0)
to


Bx=RandomBetween(4, 8)
B=(Bx,0)

and the same for C

Comments (6)

photo
1

Please post your file

photo
1

Thanks for your response, this is my file

photo
1

Change

(RandomBetween(4, 8), 0)
to


Bx=RandomBetween(4, 8)
B=(Bx,0)

and the same for C

photo
1

thanks, it worked.

oh yeah, I also tried editing the javascript on the button with the same way, and it worked too. this is the result:

https://www.geogebra.org/m/ehsg4gfm

photo
1

wow thank you. I just found out about this. normally I just use updateconstruction. Thanks for your example and explanation.

photo
© 2023 International GeoGebra Institute