pottsy1000000
New Member
Hi everyone,
I'm picking up a project that I've not looked at since last year. I had some great advice from you last year on how to generate a random number between 2 fixed points. However the Set to Random command seems to always set the initial variable to '2' and so the formula that follows always comes to the same number between the fixed point. I'm using the Blockley and can't see any other way to use the Set to Random command. Has anyone had the same problem before? and what can you recommend?
I'm not sure if it helps, but here is a screen shot of the code attached.
Many thanks in advance
I'm picking up a project that I've not looked at since last year. I had some great advice from you last year on how to generate a random number between 2 fixed points. However the Set to Random command seems to always set the initial variable to '2' and so the formula that follows always comes to the same number between the fixed point. I'm using the Blockley and can't see any other way to use the Set to Random command. Has anyone had the same problem before? and what can you recommend?
I'm not sure if it helps, but here is a screen shot of the code attached.
Many thanks in advance
Attachments
-
29.2 KB Views: 12