A Rust wrapper for calling WASI
This wrapper adheres to this API to the best of its ability. Note that this API is extremely new and may change.
use wasi::*;
fn main(){
let r = random::get();
let d6 = 6*r;
console_log(&format!("you rolled a {}",d6));
}