{"action":"created","issue":{"url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/11","labels_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/11/comments","events_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/11/events","html_url":"https://github.com/iLanguage/d3-cloud/issues/11","id":90163448,"number":11,"title":"Added pluggable random number generator","user":{"login":"cesine","id":196199,"avatar_url":"https://avatars.githubusercontent.com/u/196199?v=3","gravatar_id":"","url":"https://api.github.com/users/cesine","html_url":"https://github.com/cesine","followers_url":"https://api.github.com/users/cesine/followers","following_url":"https://api.github.com/users/cesine/following{/other_user}","gists_url":"https://api.github.com/users/cesine/gists{/gist_id}","starred_url":"https://api.github.com/users/cesine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesine/subscriptions","organizations_url":"https://api.github.com/users/cesine/orgs","repos_url":"https://api.github.com/users/cesine/repos","events_url":"https://api.github.com/users/cesine/events{/privacy}","received_events_url":"https://api.github.com/users/cesine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T17:40:45Z","updated_at":"2015-06-22T17:40:46Z","closed_at":null,"body":"<a href=\"https://github.com/davidtinker\"><img src=\"https://avatars.githubusercontent.com/u/561033?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [davidtinker](https://github.com/davidtinker)**\n_Thursday Sep 20, 2012 at 19:59 GMT_\n_Originally opened as https://github.com/jasondavies/d3-cloud/pull/1_\n\n----\n\nHi 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:\n\n```javascript\nvar makeRandom = function(seed) {\n    return function() {\n        return (seed = (seed * 9301 + 49297) % 233280) / 233280.0; \n    }\n}\n\nvar random = makeRandom(123);\n\nvar layout = d3.layout.cloud()\n    .random(random)\n    .size([width, height])\n    ...\n```\n\n----\n\n_**[davidtinker](https://github.com/davidtinker)** included the following code: https://github.com/jasondavies/d3-cloud/pull/1/commits_\n"},"comment":{"url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/comments/114194080","html_url":"https://github.com/iLanguage/d3-cloud/issues/11#issuecomment-114194080","issue_url":"https://api.github.com/repos/iLanguage/d3-cloud/issues/11","id":114194080,"user":{"login":"cesine","id":196199,"avatar_url":"https://avatars.githubusercontent.com/u/196199?v=3","gravatar_id":"","url":"https://api.github.com/users/cesine","html_url":"https://github.com/cesine","followers_url":"https://api.github.com/users/cesine/followers","following_url":"https://api.github.com/users/cesine/following{/other_user}","gists_url":"https://api.github.com/users/cesine/gists{/gist_id}","starred_url":"https://api.github.com/users/cesine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesine/subscriptions","organizations_url":"https://api.github.com/users/cesine/orgs","repos_url":"https://api.github.com/users/cesine/repos","events_url":"https://api.github.com/users/cesine/events{/privacy}","received_events_url":"https://api.github.com/users/cesine/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T17:40:46Z","updated_at":"2015-06-22T17:40:46Z","body":"<a href=\"https://github.com/ebi\"><img src=\"https://avatars.githubusercontent.com/u/11541?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [ebi](https://github.com/ebi)**\n_Thursday Aug 21, 2014 at 14:41 GMT_\n\n----\n\nWould be very nice to see this merged.\n"}}