title: How to get the same node positions in d3's force layout graph
body: <p>I would like to create a force directed graph, but i need it to stay the same every time it is generated (with the same data).
  Is there any way to do this using d3.js?</p>
  
  <p>UPDATE:</p>
  
  <p>I found <a href="http://jsfiddle.net/s8pcecka/2/" rel="noreferrer">working solution</a>, which is based on using <a href="https://github.com/davidbau/seedrandom" rel="noreferrer">seeded random number generator</a> </p>
  
  <pre><code>// set the random seed
  Math.seedrandom('mySeed');
  </code></pre>