Open win5do opened 3 weeks ago
https://github.com/mroth/weightedrand/blob/82b9ec74aca51314533f5ad81822c7b722021e58/weightedrand.go#L41-L44
Sort doesn't make any sense for randomness. And it will change the order of the original array, which is not a good practice.
https://github.com/mroth/weightedrand/blob/82b9ec74aca51314533f5ad81822c7b722021e58/weightedrand.go#L41-L44
Sort doesn't make any sense for randomness. And it will change the order of the original array, which is not a good practice.