Started by
MargoxaTheGamer
on
Topic category: Troubleshooting, bugs, and solutions
When I used "Set Local: [My number variable] to: Random [0,1) * 1"
(so it should turn variable to a number between 0 and 1)
In my procedure, that should run when right clicked on block with "Testing stick(that will be a natural structure in the future)" nothing, that should be choosed randomly generated, I thought, that 50% chance just didn't happen, but it didn't happen even after many procedure calls.
That part of the structure, that should generate always is generating. But part, that should generate with 50% chance doesn't even after 20 tries.
Workspace file:
https://drive.google.com/file/d/1yIsprIigD2EKvwUhgrbK0fB0GlGNnc0u/view?usp=sharing
Edited by MargoxaTheGamer on Mon, 05/17/2021 - 11:30
Sorry for my English.
To generate a number between 0 (inclusive) and 10 (inclusive) do:
Do Local 'DoesGnerateForwrdRoad to: round (Random (0,1) * 10)
Then pay attention to the interlocking of the if ... then
Okay, thanks!
But after that I used "do with 70%" chance instead and it worked just fine.