From 7851030e842f170c4fd58c3c5d3c3a06a33647dd Mon Sep 17 00:00:00 2001 From: Micho Date: Wed, 22 May 2013 13:31:50 +0200 Subject: [PATCH] even more deterministic randomness --- clients/anim/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clients/anim/main.js b/clients/anim/main.js index 2340d9e..e764e62 100644 --- a/clients/anim/main.js +++ b/clients/anim/main.js @@ -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);