Sign in
webkit
/
WebKit
/
36168652e4948b4e847a9c1caf1fabcf1810968f
/
.
/
JSTests
/
microbenchmarks
/
math-random.js
blob: 5ac92df6fbf6bbd67e4a01a6b4801fed84ba4171 [
file
] [
log
] [
blame
]
function
test
()
{
var
result
=
false
;
for
(
var
i
=
0
;
i
<
100
;
++
i
)
{
if
(
Math
.
random
()
<
0.5
)
result
=
true
;
if
(
Math
.
random
()
>=
0.5
)
result
=
true
;
}
return
result
;
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e4
;
++
i
)
test
();