Why is `thread_rng()` called on `rand` and not `Rng`, like how `stdin()` called on `io`?

前端 未结 0 1468
独厮守ぢ
独厮守ぢ 2021-02-20 03:44

I am at Generating a Random Number in The Rust Programming Language, but I am having trouble understanding the use of the library we add with the keyword use

相关标签:
回答
  • 消灭零回复
提交回复
热议问题