3 releases (stable)
1.0.1 | Jun 24, 2024 |
---|---|
1.0.0 | Jun 22, 2024 |
0.2.1 | Jan 19, 2024 |
0.1.5 |
|
0.1.1 |
|
#3 in #simulating
21KB
180 lines
.NET 3.5 Random in Rust
一个用于模拟 .NET 3.5 Random 的 Rust 库
A Rust library for simulating .NET 3.5 Random
用法 Usage
use dotnet35_rand_rs::DotNet35Random;
fn main() {
let mut rng = DotNet35Random::new(123456789);
println!("{}", rng.next());
let mut rng_now = DotNet35Random::new_now();
println!("{}", rng_now.next());
}
注意 Notice
这个库就是一个 GitHub Copilot 作品, 如果你在意,请不要使用,自己写一个去吧
This library is just a GitHub Copilot work, If you care, please don't use it, write one yourself
lib.rs
:
一个模拟 .NET 3.5 的 Random 类的库
A library for simulating the .NET 3.5 Random class
用法 Usage:
use dotnet35_rand_rs::DotNet35Random;
fn main() {
let mut rand = DotNet35Random::new(0);
println!("{}", rand.next());
}
by shenjackyuanjie