UNPKG

@roninjjj/randomize

Version:

Easily include random number generation in your projects. Whether if it's a 2 item 50/50, or a 20 item lootbox, all you need is a simple object!

2 lines (1 loc) 93 B
export default function randomChance<T extends Record<string, number>>(chances: T): keyof T;