Skip to content

Uneven randomization #5

Description

@xchiptune

Seems like the app is simply randomizing within the range it was set at and it and doesn't actually take into consideration the base multiplier. If you choose your limits to be 1/3 to 3x with a base of 1, you get a lot more sensitivities above your base than bellow (see image). I believe the purpose of the base sensitivity is for that you get roughly a even distribution of sensitivities above and bellow that base? Seems this isn't just a case of bad RNG, no matter how many times I regenerate the curve it's always ~80% above the base.

Don't want to sound pretentious, I'm no programmer. But I'm guessing it's because it's more likely for a random number between 0.33 and 3 to land between 1 and 3 rather than 0.33 and 1. Considering this is a multiplier it would probably be best to randomize on a logarithmic scale. That way the odds of a number landing between 0.33 and 1 would be equal to landing between 1 and 3. (log(1/3) = -0.477, log(3) = 0.477, randomize between -0.477 and 0.477 for x, then 10^x = your random multiplier)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions