Aderventurer / grade-two-learn

second year in college
0 stars 0 forks source link

生成随机数 #10

Open hhllhhyyds opened 3 hours ago

hhllhhyyds commented 3 hours ago

接受命令行参数 n (检查 n 为 1-100 以内的正整数),生成 n 个 0-1 内的随机数,并打印出来。并且调用标准库的排序函数对这 n 个数进行排序,排序后的数再次打印出来。用三种语言实现。

hhllhhyyds commented 3 hours ago

用标准库函数生成随机数。rust 可以使用 rand crate