This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
functions:randsign [2017/07/09 17:43] – korshun | functions:randsign [2017/07/09 17:43] (current) – korshun | ||
---|---|---|---|
Line 9: | Line 9: | ||
< | < | ||
int speed = randsign() * 10.0; | int speed = randsign() * 10.0; | ||
+ | // speed is now either 10.0 or -10.0. | ||
</ | </ |