OVMS3/OVMS.V3/components/duktape/src-separate/duk_api_random.c

9 lines
169 B
C

/*
* Random numbers
*/
#include "duk_internal.h"
DUK_EXTERNAL duk_double_t duk_random(duk_hthread *thr) {
return (duk_double_t) DUK_UTIL_GET_RANDOM_DOUBLE(thr);
}