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