Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 307 Bytes

File metadata and controls

11 lines (7 loc) · 307 Bytes

NodeJS-Rarity-Table

Module to generate traits for NFTs

How to Run: node rarityTableV2.js

Setup: For each trait, [name, weight, [index of traits for that rarity] ]

weight: Cumulative (0 to 1), start with lowest to highest tier

Ex: [common, 0.5] = If roll is between 0 and 0.5, then Common (Inclusive)