MATH AND Stadistic Question

Aiden

Member
Reaction score
0
Im trying to do random event ... you know more random
AND IN A Easy easy way.
Reading this forum, someone think in this:
Trigger:
  • First
    • Conditions
      • <b>(Random integer number between 1 and 2) Equal to 1</b>
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
    • <b> (Random integer number between 1 and 20) Equal to 10</b>
      • Then - Actions
        • Item - Create Healing Salve at Temp_Point
      • Else - Actions
        • Do nothing

But my question its this:
Chance 1 in 2 is ... 50%
Then if you got it
Chance 1 in 20 is 5 %

So the REAL %
For something in this trigger happens its?

May be this?:
0,5 x 0,05 = 0,025
 
First, I want to just say that the trigger formatting you did is neigh on impossible to read.

Second off, just store the percent chance you want in a real array and then just do an if-then to check if a randomly generated integer/real (from 1 to 100) divided by 100 is equal to or less than the percent chance you have stored. If it is, do what you want.

Also, don't use Do nothing. It does exactly what it says. Nothing. It's better to leave it blank as having Do nothing there actually insinuates a call to a function which decreases efficiency. In short, don't use Do Nothing.
 
>May be this?:
0,5 x 0,05 = 0,025

Yea I think you are right. I guess it's the same as having two dice and trying to roll 2 6s
the first 6's chance is 1 / 6 and the second is 1 / 6 but double 6s is only 1 / 36 = 1 / 6 * 1 / 6.

I guess rolling double 6s i more likely then this (1 / 40 < 1 / 36)
 
Im trying to do random event ... you know more random
AND IN A Easy easy way.
Reading this forum, someone think in this:
Trigger:
  • First
    • Conditions
      • <b>(Random integer number between 1 and 2) Equal to 1</b>
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
    • <b> (Random integer number between 1 and 20) Equal to 10</b>
      • Then - Actions
        • Item - Create Healing Salve at Temp_Point
      • Else - Actions
        • Do nothing

But my question its this:
Chance 1 in 2 is ... 50%
Then if you got it
Chance 1 in 20 is 5 %

So the REAL %
For something in this trigger happens its?

May be this?:
0,5 x 0,05 = 0,025

You're right, but I doubt it will be more "random" doing 2x 0,05 than it is to just do 0,025 chance.
 
First, I want to just say that the trigger formatting you did is neigh on impossible to read.

Second off, just store the percent chance you want in a real array and then just do an if-then to check if a randomly generated integer/real (from 1 to 100) divided by 100 is equal to or less than the percent chance you have stored. If it is, do what you want.

Also, don't use Do nothing. It does exactly what it says. Nothing. It's better to leave it blank as having Do nothing there actually insinuates a call to a function which decreases efficiency. In short, don't use Do Nothing.
uhmmm? what?
1 from 10 its 10% chance, you dont need to do that.
 
You're right, but I doubt it will be more "random" doing 2x 0,05 than it is to just do 0,025 chance.
Testing a lot my map i concloud exist some secuence for random issues.
so if you just used :
Chance 1 in 40 is ... 5% you will see some secuence.
but if you use more condition for that event, the trigger actually more random.
I guesss..
 
Testing a lot my map i concloud exist some secuence for random issues.
so if you just used :
Chance 1 in 40 is ... 5% you will see some secuence.
but if you use more condition for that event, the trigger actually more random.
I guesss..

It shouldnt make a difference.. Think the sequence you saw, is just accidentally.

OR:

You should have check the box 'fixed random seeds' off @ world editor preferences if you test it! If you dont, the random number will be the same every time
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top