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