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

10 lines
169 B
C
Raw Normal View History

/*
* 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);
}