1
2
3
4
5
6
7
8
9
#![no_std]
use js::*;

pub fn random() -> f64 {
    js!("function(){
        return Math.random();
    }")
    .invoke_0()
}