even more deterministic randomness

This commit is contained in:
Micho 2013-05-22 13:31:50 +02:00
parent 41a500e8fd
commit 7851030e84
1 changed files with 2 additions and 3 deletions

View File

@ -114,9 +114,8 @@ function init() {
var v = 0.2;
data.matrix.forEach(function (times, index) {
clients[index] = { point:undefined, x:0, y:0, r:0, x0:0, y0:0, r0:0, index:index, lastEvent:0, selected:false };
v = 3.999*v*(1-v); // bifurcation
random[index] = v;
var v = (1.1+Math.sin(index))*1e6;
random[index] = v - Math.floor(v);
});
$('#play').click(togglePlay);