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