I plan to start creating a series of tutorials on the fundamentals of creating generative art. The focus will likely be on p5.js and fxhash for now.
The first piece will likely cover a function you can use to compute a rarity score for a “feature” in fxhash. Say you want a random number between 1-10 but with different probabilities assigned to each number. Maybe you want the probability of a 1 to be 50% and the probability of a 10 to scale down to 1%.
This is useful because you want to avoid a homogenous distribution of values when creating features. Otherwise, you end up with a bunch of editions in your mint all with a relatively equal rarity. If you make sure your features have an asymmetrical distribution of values, you’ll wind up with a more natural distinction between common, uncommon, and rare pieces.
Please let me know if there are any techniques you’d like to see covered.