Skip to content

Commit 4cb966e

Browse files
authored
Merge pull request #15524 from linbingquan/clean-up
Examples: Clean up
2 parents 9ad0459 + aa0e681 commit 4cb966e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/js/offscreen/scene.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ function animate() {
7171
// PRNG
7272

7373
var seed = 1;
74+
7475
function random() {
75-
var x = Math.sin(seed++) * 10000;
76-
return x - Math.floor(x);
76+
77+
var x = Math.sin( seed ++ ) * 10000;
78+
79+
return x - Math.floor( x );
80+
7781
}

0 commit comments

Comments
 (0)