林炳权 6 years ago
parent
commit
aa0e681563
1 changed files with 6 additions and 2 deletions
  1. 6 2
      examples/js/offscreen/scene.js

+ 6 - 2
examples/js/offscreen/scene.js

@@ -71,7 +71,11 @@ function animate() {
 // PRNG
 
 var seed = 1;
+
 function random() {
-	var x = Math.sin(seed++) * 10000;
-	return x - Math.floor(x);
+
+	var x = Math.sin( seed ++ ) * 10000;
+
+	return x - Math.floor( x );
+
 }