4 releases (stable)

new 2.0.0 Apr 26, 2025
1.0.3 Apr 26, 2025
1.0.1 Jun 24, 2024
0.2.1 Jan 19, 2024
0.1.1 Dec 31, 2023

#400 in Build Utils

Download history 1/week @ 2025-02-23 3/week @ 2025-03-02

582 downloads per month

WTFPL license

22KB
186 lines

一个模拟 .NET 3.5 的 Random 类的库

A library for simulating the .NET 3.5 Random class

用法 Usage:

use dotnet35_rand_rs::DotNet35Random;

let mut rand = DotNet35Random::new(0);
println!("{}", rand.next());

by shenjackyuanjie


.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

No runtime deps