File: duk_api_random.c

package info (click to toggle)
duktape 2.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 21,160 kB
  • sloc: ansic: 215,359; python: 5,961; javascript: 4,555; makefile: 477; cpp: 205
file content (9 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
/*
 *  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);
}