@@ 0,0 1,12 @@
+image: debian/buster
+packages:
+ - cargo
+sources:
+ - hg+https://hg.sr.ht/~icefox/oorandom
+tasks:
+ - build: |
+ cd oorandom
+ cargo build
+ - test: |
+ cd oorandom
+ cargo test
@@ 2,6 2,7 @@
[](https://crates.io/crates/oorandom)
[](https://docs.rs/oorandom)
+[](https://builds.sr.ht/~icefox/oorandom?)
# What is this?
@@ 52,7 53,8 @@ and portable and involves absolutely zer
```rust
use oorandom;
fn main() {
- let rng = oorandom::Rand32::new(some_seed);
+ let some_seed = 4;
+ let mut rng = oorandom::Rand32::new(some_seed);
println!("Your random number is: {}", rng.rand_float());
}
```