web-dom 0.0.10

Simple bindings to the DOM using wasm-module
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern "C" {
    fn math_random() -> f32;
    fn math_random_n(n: i32) -> i32;
}

pub fn random() -> f32 {
    unsafe { math_random() }
}

pub fn random_n(n: i32) -> i32 {
    unsafe { math_random_n(n) }
}