The default seed is 1, when a program calls rand() without calling srand(); so srand(1) reproduces the default ... Rust's rand crate offers several PRNGs.
確定! 回上一頁