export const prerender = true;
Pick a random item from a list using custom weights for each option.
How does weighted random selection work?
Each item's chance of being picked is proportional to its weight. If item A has weight 2 and item B has weight 8, B is 4 times more likely to be selected than A.
Can I use decimal weights?
Yes, you can use any positive number as a weight, including decimals. The generator normalizes all weights automatically.
Is the result truly random?
Yes. The generator uses a cryptographically secure random number generator to ensure fair and unpredictable results every time.