Given that all snippets get weight, even if that was not initially set (line 123) and that random_number will be `[0, sum)` maybe that's an overkill?