Fat Rand: How many lines do you need to generate a random number?

Viewed 19
The discussion revolves around the excessive size and complexity of the `rand` crate given its functionality—primarily a simple function to generate random numbers. Users express frustration with the number of lines of code involved and the dependency footprint of the `rand` crate and mention other related tools, like the Azure CLI, that have similarly bloated sizes. The community is advocating for standardization within the random number generation libraries in Rust, suggesting that a simplified and cohesive approach could greatly reduce the complexity and dependencies, thus improving usability and adoption. Additionally, there are contrasting opinions on the necessity of the current complexities, with some converting to simpler implementations and others arguing for the importance of robust and tested libraries. Overall, the conversation highlights a tension between the desire for simplicity in code versus the benefits of comprehensive library features.
0 Answers