Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Weight must be >= 0 (got 0) #1

Open
obsidianart opened this issue Nov 17, 2013 · 1 comment
Open

Uncaught Error: Weight must be >= 0 (got 0) #1

obsidianart opened this issue Nov 17, 2013 · 1 comment

Comments

@obsidianart
Copy link

0 is >=0, this error is unclear.
I think 0 should be an acceptable value.
I'm creating a list and then increment the weight based on parameters, so the original value is 0.

@obsidianart
Copy link
Author

var quoteWeights = [
['cold',0],
['warm',0],
['wind',0],
['rain',0],
['littleRain',0]
];
var wq = new WeightedList(quoteWeights);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant