{"action":"created","comment":{"url":"https://api.github.com/repos/d3/d3-random/pulls/comments/114579529","pull_request_review_id":36058131,"id":114579529,"diff_hunk":"@@ -1,20 +1,27 @@\n-export default function(mu, sigma) {\n-  var x, r;\n-  mu = mu == null ? 0 : +mu;\n-  sigma = sigma == null ? 1 : +sigma;\n-  return function() {\n-    var y;\n+import defaultSource from \"./defaultSource\";\n+export default (function sourceRandomNormal(source) {","path":"src/normal.js","position":8,"original_position":8,"commit_id":"b4ee40cdafc028fbf6368e65e67df915ef3c870f","original_commit_id":"b4ee40cdafc028fbf6368e65e67df915ef3c870f","user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars1.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"body":"And here.","created_at":"2017-05-03T15:42:49Z","updated_at":"2017-05-03T15:44:10Z","html_url":"https://github.com/d3/d3-random/pull/18#discussion_r114579529","pull_request_url":"https://api.github.com/repos/d3/d3-random/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/d3/d3-random/pulls/comments/114579529"},"html":{"href":"https://github.com/d3/d3-random/pull/18#discussion_r114579529"},"pull_request":{"href":"https://api.github.com/repos/d3/d3-random/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/d3/d3-random/pulls/18","id":118331300,"html_url":"https://github.com/d3/d3-random/pull/18","diff_url":"https://github.com/d3/d3-random/pull/18.diff","patch_url":"https://github.com/d3/d3-random/pull/18.patch","issue_url":"https://api.github.com/repos/d3/d3-random/issues/18","number":18,"state":"open","locked":false,"title":"Support other prngs","user":{"login":"rolyatmax","id":2099249,"avatar_url":"https://avatars3.githubusercontent.com/u/2099249?v=3","gravatar_id":"","url":"https://api.github.com/users/rolyatmax","html_url":"https://github.com/rolyatmax","followers_url":"https://api.github.com/users/rolyatmax/followers","following_url":"https://api.github.com/users/rolyatmax/following{/other_user}","gists_url":"https://api.github.com/users/rolyatmax/gists{/gist_id}","starred_url":"https://api.github.com/users/rolyatmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolyatmax/subscriptions","organizations_url":"https://api.github.com/users/rolyatmax/orgs","repos_url":"https://api.github.com/users/rolyatmax/repos","events_url":"https://api.github.com/users/rolyatmax/events{/privacy}","received_events_url":"https://api.github.com/users/rolyatmax/received_events","type":"User","site_admin":false},"body":"This PR adds support for optionally passing a custom `random` function to be used instead of `Math.random`.\r\n\r\nSee: https://github.com/d3/d3-random/issues/6\r\n\r\n@mbostock Let me know if this is going down the right path, or if you'd prefer a `randomSource` function as you mentioned in [this comment](https://github.com/d3/d3-random/issues/6#issuecomment-176984568).\r\n\r\nAlso, I still need to add tests for this!","created_at":"2017-04-30T23:23:54Z","updated_at":"2017-05-03T15:44:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5336cae6deedd89cb0832a995c7215755e8ccbac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/d3/d3-random/pulls/18/commits","review_comments_url":"https://api.github.com/repos/d3/d3-random/pulls/18/comments","review_comment_url":"https://api.github.com/repos/d3/d3-random/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3/d3-random/issues/18/comments","statuses_url":"https://api.github.com/repos/d3/d3-random/statuses/b4ee40cdafc028fbf6368e65e67df915ef3c870f","head":{"label":"rolyatmax:support-other-prngs","ref":"support-other-prngs","sha":"b4ee40cdafc028fbf6368e65e67df915ef3c870f","user":{"login":"rolyatmax","id":2099249,"avatar_url":"https://avatars3.githubusercontent.com/u/2099249?v=3","gravatar_id":"","url":"https://api.github.com/users/rolyatmax","html_url":"https://github.com/rolyatmax","followers_url":"https://api.github.com/users/rolyatmax/followers","following_url":"https://api.github.com/users/rolyatmax/following{/other_user}","gists_url":"https://api.github.com/users/rolyatmax/gists{/gist_id}","starred_url":"https://api.github.com/users/rolyatmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolyatmax/subscriptions","organizations_url":"https://api.github.com/users/rolyatmax/orgs","repos_url":"https://api.github.com/users/rolyatmax/repos","events_url":"https://api.github.com/users/rolyatmax/events{/privacy}","received_events_url":"https://api.github.com/users/rolyatmax/received_events","type":"User","site_admin":false},"repo":{"id":89882208,"name":"d3-random","full_name":"rolyatmax/d3-random","owner":{"login":"rolyatmax","id":2099249,"avatar_url":"https://avatars3.githubusercontent.com/u/2099249?v=3","gravatar_id":"","url":"https://api.github.com/users/rolyatmax","html_url":"https://github.com/rolyatmax","followers_url":"https://api.github.com/users/rolyatmax/followers","following_url":"https://api.github.com/users/rolyatmax/following{/other_user}","gists_url":"https://api.github.com/users/rolyatmax/gists{/gist_id}","starred_url":"https://api.github.com/users/rolyatmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolyatmax/subscriptions","organizations_url":"https://api.github.com/users/rolyatmax/orgs","repos_url":"https://api.github.com/users/rolyatmax/repos","events_url":"https://api.github.com/users/rolyatmax/events{/privacy}","received_events_url":"https://api.github.com/users/rolyatmax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rolyatmax/d3-random","description":"Generate random numbers from various distributions.","fork":true,"url":"https://api.github.com/repos/rolyatmax/d3-random","forks_url":"https://api.github.com/repos/rolyatmax/d3-random/forks","keys_url":"https://api.github.com/repos/rolyatmax/d3-random/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rolyatmax/d3-random/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rolyatmax/d3-random/teams","hooks_url":"https://api.github.com/repos/rolyatmax/d3-random/hooks","issue_events_url":"https://api.github.com/repos/rolyatmax/d3-random/issues/events{/number}","events_url":"https://api.github.com/repos/rolyatmax/d3-random/events","assignees_url":"https://api.github.com/repos/rolyatmax/d3-random/assignees{/user}","branches_url":"https://api.github.com/repos/rolyatmax/d3-random/branches{/branch}","tags_url":"https://api.github.com/repos/rolyatmax/d3-random/tags","blobs_url":"https://api.github.com/repos/rolyatmax/d3-random/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rolyatmax/d3-random/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rolyatmax/d3-random/git/refs{/sha}","trees_url":"https://api.github.com/repos/rolyatmax/d3-random/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rolyatmax/d3-random/statuses/{sha}","languages_url":"https://api.github.com/repos/rolyatmax/d3-random/languages","stargazers_url":"https://api.github.com/repos/rolyatmax/d3-random/stargazers","contributors_url":"https://api.github.com/repos/rolyatmax/d3-random/contributors","subscribers_url":"https://api.github.com/repos/rolyatmax/d3-random/subscribers","subscription_url":"https://api.github.com/repos/rolyatmax/d3-random/subscription","commits_url":"https://api.github.com/repos/rolyatmax/d3-random/commits{/sha}","git_commits_url":"https://api.github.com/repos/rolyatmax/d3-random/git/commits{/sha}","comments_url":"https://api.github.com/repos/rolyatmax/d3-random/comments{/number}","issue_comment_url":"https://api.github.com/repos/rolyatmax/d3-random/issues/comments{/number}","contents_url":"https://api.github.com/repos/rolyatmax/d3-random/contents/{+path}","compare_url":"https://api.github.com/repos/rolyatmax/d3-random/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rolyatmax/d3-random/merges","archive_url":"https://api.github.com/repos/rolyatmax/d3-random/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rolyatmax/d3-random/downloads","issues_url":"https://api.github.com/repos/rolyatmax/d3-random/issues{/number}","pulls_url":"https://api.github.com/repos/rolyatmax/d3-random/pulls{/number}","milestones_url":"https://api.github.com/repos/rolyatmax/d3-random/milestones{/number}","notifications_url":"https://api.github.com/repos/rolyatmax/d3-random/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rolyatmax/d3-random/labels{/name}","releases_url":"https://api.github.com/repos/rolyatmax/d3-random/releases{/id}","deployments_url":"https://api.github.com/repos/rolyatmax/d3-random/deployments","created_at":"2017-04-30T22:56:16Z","updated_at":"2017-04-30T22:56:18Z","pushed_at":"2017-05-03T14:28:32Z","git_url":"git://github.com/rolyatmax/d3-random.git","ssh_url":"git@github.com:rolyatmax/d3-random.git","clone_url":"https://github.com/rolyatmax/d3-random.git","svn_url":"https://github.com/rolyatmax/d3-random","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"d3:master","ref":"master","sha":"a761e6b2c2df40b3c170c3bbef80813613a1472f","user":{"login":"d3","id":1562726,"avatar_url":"https://avatars2.githubusercontent.com/u/1562726?v=3","gravatar_id":"","url":"https://api.github.com/users/d3","html_url":"https://github.com/d3","followers_url":"https://api.github.com/users/d3/followers","following_url":"https://api.github.com/users/d3/following{/other_user}","gists_url":"https://api.github.com/users/d3/gists{/gist_id}","starred_url":"https://api.github.com/users/d3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3/subscriptions","organizations_url":"https://api.github.com/users/d3/orgs","repos_url":"https://api.github.com/users/d3/repos","events_url":"https://api.github.com/users/d3/events{/privacy}","received_events_url":"https://api.github.com/users/d3/received_events","type":"Organization","site_admin":false},"repo":{"id":37145035,"name":"d3-random","full_name":"d3/d3-random","owner":{"login":"d3","id":1562726,"avatar_url":"https://avatars2.githubusercontent.com/u/1562726?v=3","gravatar_id":"","url":"https://api.github.com/users/d3","html_url":"https://github.com/d3","followers_url":"https://api.github.com/users/d3/followers","following_url":"https://api.github.com/users/d3/following{/other_user}","gists_url":"https://api.github.com/users/d3/gists{/gist_id}","starred_url":"https://api.github.com/users/d3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3/subscriptions","organizations_url":"https://api.github.com/users/d3/orgs","repos_url":"https://api.github.com/users/d3/repos","events_url":"https://api.github.com/users/d3/events{/privacy}","received_events_url":"https://api.github.com/users/d3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/d3/d3-random","description":"Generate random numbers from various distributions.","fork":false,"url":"https://api.github.com/repos/d3/d3-random","forks_url":"https://api.github.com/repos/d3/d3-random/forks","keys_url":"https://api.github.com/repos/d3/d3-random/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3/d3-random/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3/d3-random/teams","hooks_url":"https://api.github.com/repos/d3/d3-random/hooks","issue_events_url":"https://api.github.com/repos/d3/d3-random/issues/events{/number}","events_url":"https://api.github.com/repos/d3/d3-random/events","assignees_url":"https://api.github.com/repos/d3/d3-random/assignees{/user}","branches_url":"https://api.github.com/repos/d3/d3-random/branches{/branch}","tags_url":"https://api.github.com/repos/d3/d3-random/tags","blobs_url":"https://api.github.com/repos/d3/d3-random/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3/d3-random/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3/d3-random/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3/d3-random/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3/d3-random/statuses/{sha}","languages_url":"https://api.github.com/repos/d3/d3-random/languages","stargazers_url":"https://api.github.com/repos/d3/d3-random/stargazers","contributors_url":"https://api.github.com/repos/d3/d3-random/contributors","subscribers_url":"https://api.github.com/repos/d3/d3-random/subscribers","subscription_url":"https://api.github.com/repos/d3/d3-random/subscription","commits_url":"https://api.github.com/repos/d3/d3-random/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3/d3-random/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3/d3-random/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3/d3-random/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3/d3-random/contents/{+path}","compare_url":"https://api.github.com/repos/d3/d3-random/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3/d3-random/merges","archive_url":"https://api.github.com/repos/d3/d3-random/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3/d3-random/downloads","issues_url":"https://api.github.com/repos/d3/d3-random/issues{/number}","pulls_url":"https://api.github.com/repos/d3/d3-random/pulls{/number}","milestones_url":"https://api.github.com/repos/d3/d3-random/milestones{/number}","notifications_url":"https://api.github.com/repos/d3/d3-random/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3/d3-random/labels{/name}","releases_url":"https://api.github.com/repos/d3/d3-random/releases{/id}","deployments_url":"https://api.github.com/repos/d3/d3-random/deployments","created_at":"2015-06-09T16:46:17Z","updated_at":"2017-01-29T08:04:13Z","pushed_at":"2017-05-03T14:28:33Z","git_url":"git://github.com/d3/d3-random.git","ssh_url":"git@github.com:d3/d3-random.git","clone_url":"https://github.com/d3/d3-random.git","svn_url":"https://github.com/d3/d3-random","homepage":null,"size":39,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/d3/d3-random/pulls/18"},"html":{"href":"https://github.com/d3/d3-random/pull/18"},"issue":{"href":"https://api.github.com/repos/d3/d3-random/issues/18"},"comments":{"href":"https://api.github.com/repos/d3/d3-random/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/d3/d3-random/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/d3/d3-random/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3/d3-random/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/d3/d3-random/statuses/b4ee40cdafc028fbf6368e65e67df915ef3c870f"}}}}
{"actor":{"display_login":"mbostock"}}