jasondavies/d3-cloud — pull request #1 by davidtinker (2012-09-20 19:59:40+00:00)
Title: Added pluggable random number generator

Hi Jason. Thanks for your cool library. I needed to be able to reproduce word clouds so I added a pluggable random number generator. Example usage:

```javascript
var makeRandom = function(seed) {
return function() {
return (seed = (seed * 9301 + 49297) % 233280) / 233280.0;
}
}

var random = makeRandom(123);

var layout = d3.layout.cloud()
.random(random)
.size([width, height])
...
```