Distribution of weighting | Comprehension problem #140
-
Hello, I hope I'm not the 100th user to ask this now. But how does it work with the weighting? Can someone explain? Haven't found anything useful or didn't understand :( How do I specify the distribution if I want only 1% of 100 NFTs to get the "Legend" trait? How do I calculate the weighting so that, for example, for "Common" I distribute the Axe.png at 15% and the Rollers at 14%? My layer structure:
So if anyone can tell me what formula I'm using to calculate this or what I'm doing wrong in my folder structure, that would be awesome! Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
TL;DR if you want to use percentages and don't like weights, make sure the sum of all your weights is 100, and then each trait weight will be a percentage. Weights are similar to percentages, only on a total that is not limited to 100. Percent - literally means over 100, so 1% is 1/100. With weights is the same just the "100" now is any number wich is total of your weights. |
Beta Was this translation helpful? Give feedback.
TL;DR if you want to use percentages and don't like weights, make sure the sum of all your weights is 100, and then each trait weight will be a percentage.
Weights are similar to percentages, only on a total that is not limited to 100. Percent - literally means over 100, so 1% is 1/100. With weights is the same just the "100" now is any number wich is total of your weights.
So if you have trait1 having weight of 3 and if you sum up all other weights you get a number of 150, that means that your trait1 will have the probability of 3/150 to be generated, which is the same as 2/100, or 2%.