Jump to content

Random chance not so random


firefox88

Recommended Posts

After the update today, I made a new random mission for multiple replays. Problem is, 1% is all the time and 0% is never for each of my triggers. Anyone else having this problem or am I screwing something up? Ive made random missions before, so I know I know how to do them, but for some reason cant now.

Link to comment
Share on other sites

So, I (obviously) have no idea how you are trying to do what you do.

However, based on the information you do provide, the following comes to mind:

Probability in programming is more often done in the range of 0 to 1, instead of the 0 to 100 (percent) you (have) use(d).

This means that 1 is "always" and 0 is "never" and 0.5 is 50%.

What you could test is to see if dividing your percental value by 100 gives the desired result.

 

Note: I do not know whether this behaviour change is intended or a bug, so bear in mind that, if my suggested fix works, changing the value's may "break" again in the future.

 

Best of luck

Link to comment
Share on other sites

I have no idea what the OP is talking about ,but I also have some missions where a flag is set to a random value, let's say 1-20. The problem is that 5 of those flag values happen all the time, 5 rarely, and 10 basically never. So the 20 different flag values don't have an equal chance of happening.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...