MCPcopy Create free account
hub / github.com/mozilla/rhino / random

Method random

rhino/src/main/java/org/mozilla/javascript/NativeMath.java:578–581  ·  view source on GitHub ↗
(
            Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)

Source from the content-addressed store, hash-verified

576 }
577
578 private static Object random(
579 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
580 return ScriptRuntime.wrapNumber(Math.random());
581 }
582
583 private static Object round(
584 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Calls 1

wrapNumberMethod · 0.95

Tested by 2

getRandomWindowNameMethod · 0.64
getRandomFileNameMethod · 0.64