OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
127 stars 122 forks source link

Issue #1643 Fix Random 0.0-1.0 #1644

Closed Andy1978 closed 7 months ago

Andy1978 commented 8 months ago

Random(100) / 100 always evaluates to 0 due to integer division. The provided patch forces a floating point division. Tested on NXT with nbc 1.2.1.r4 and original Lego firmware 1.29

rbudde commented 7 months ago

see commit 2a1d326473cd1f2e3b67a8d345f59594a9fac98a