Sign in
webkit
/
WebKit
/
fd97eb341789d64d21b450ae8c97e12e74f9a2f2
/
.
/
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
();