{"action":"created","comment":{"url":"https://api.github.com/repos/d3/d3-random/pulls/comments/114823261","pull_request_review_id":36295875,"id":114823261,"diff_hunk":"@@ -49,3 +49,19 @@ Returns a function for generating random numbers with an [Irwin–Hall distribut\n <a name=\"randomExponential\" href=\"#randomExponential\">#</a> d3.<b>randomExponential</b>(<i>lambda</i>)\n \n Returns a function for generating random numbers with an [exponential distribution](https://en.wikipedia.org/wiki/Exponential_distribution) with the rate *lambda*; equivalent to time between events in a [Poisson process](https://en.wikipedia.org/wiki/Poisson_point_process) with a mean of 1 / *lambda*. For example, exponential(1/40) generates random times between events where, on average, one event occurs every 40 units of time.\n+\n+<a name=\"randomPareto\" href=\"#randomPareto\">#</a> d3.<b>randomPareto</b>(<i>alpha</i>)\n+\n+Returns a function for generating random numbers with an [pareto distribution](https://en.wikipedia.org/wiki/Pareto_distribution) with the shape *alpha*.\n+\n+<a name=\"randomBernoulli\" href=\"#randomBernoulli\">#</a> d3.<b>randomBernoulli</b>(<i>p</i>)\n+\n+Returns a function for generating either 1 or 0 according to a [Bernoulli distribution](https://en.wikipedia.org/wiki/Binomial_distribution) with 1 being returned with success probability *p* and 0 with failure probability *q* = 1 - *p*.\n+\n+<a name=\"randomGeometric\" href=\"#randomGeometric\">#</a> d3.<b>randomGeometric</b>(<i>p</i>)\n+\n+Returns a function for generating numbers with a [Geometric distribution](https://en.wikipedia.org/wiki/Geometric_distribution) with success probability *p*.\n+\n+<a name=\"randomBinomial\" href=\"#randomBinomial\">#</a> d3.<b>randomBinomial</b>(<i>n</i>, <i>p</i>)\n+\n+Returns a function for generating random numbers with a [Binomial distribution](https://en.wikipedia.org/wiki/Binomial_distribution) with *n* the number of trials and *p* the probability of success in each trial.","path":"README.md","position":19,"original_position":19,"commit_id":"be71db147df5524c667f3c77bc85ac1e48c492b6","original_commit_id":"be71db147df5524c667f3c77bc85ac1e48c492b6","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":"The README should document the expected ranges of all input arguments (for example if it’s a real number in [0, 1] or a positive integer etc.).","created_at":"2017-05-04T16:12:45Z","updated_at":"2017-05-04T16:14:02Z","html_url":"https://github.com/d3/d3-random/pull/14#discussion_r114823261","pull_request_url":"https://api.github.com/repos/d3/d3-random/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/d3/d3-random/pulls/comments/114823261"},"html":{"href":"https://github.com/d3/d3-random/pull/14#discussion_r114823261"},"pull_request":{"href":"https://api.github.com/repos/d3/d3-random/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/d3/d3-random/pulls/14","id":62669643,"html_url":"https://github.com/d3/d3-random/pull/14","diff_url":"https://github.com/d3/d3-random/pull/14.diff","patch_url":"https://github.com/d3/d3-random/pull/14.patch","issue_url":"https://api.github.com/repos/d3/d3-random/issues/14","number":14,"state":"open","locked":false,"title":"Additional random number generators","user":{"login":"svanschooten","id":3600842,"avatar_url":"https://avatars3.githubusercontent.com/u/3600842?v=3","gravatar_id":"","url":"https://api.github.com/users/svanschooten","html_url":"https://github.com/svanschooten","followers_url":"https://api.github.com/users/svanschooten/followers","following_url":"https://api.github.com/users/svanschooten/following{/other_user}","gists_url":"https://api.github.com/users/svanschooten/gists{/gist_id}","starred_url":"https://api.github.com/users/svanschooten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svanschooten/subscriptions","organizations_url":"https://api.github.com/users/svanschooten/orgs","repos_url":"https://api.github.com/users/svanschooten/repos","events_url":"https://api.github.com/users/svanschooten/events{/privacy}","received_events_url":"https://api.github.com/users/svanschooten/received_events","type":"User","site_admin":false},"body":"Added:\n- Binomial\n- Bernoulli\n- Pareto\n- Geometric\n","created_at":"2016-03-13T12:24:03Z","updated_at":"2017-05-04T16:14:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"831664268f127b434dacb99536bb71d2a4935e1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/d3/d3-random/pulls/14/commits","review_comments_url":"https://api.github.com/repos/d3/d3-random/pulls/14/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/14/comments","statuses_url":"https://api.github.com/repos/d3/d3-random/statuses/be71db147df5524c667f3c77bc85ac1e48c492b6","head":{"label":"delftswa2016:master","ref":"master","sha":"be71db147df5524c667f3c77bc85ac1e48c492b6","user":{"login":"delftswa2016","id":16455556,"avatar_url":"https://avatars2.githubusercontent.com/u/16455556?v=3","gravatar_id":"","url":"https://api.github.com/users/delftswa2016","html_url":"https://github.com/delftswa2016","followers_url":"https://api.github.com/users/delftswa2016/followers","following_url":"https://api.github.com/users/delftswa2016/following{/other_user}","gists_url":"https://api.github.com/users/delftswa2016/gists{/gist_id}","starred_url":"https://api.github.com/users/delftswa2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delftswa2016/subscriptions","organizations_url":"https://api.github.com/users/delftswa2016/orgs","repos_url":"https://api.github.com/users/delftswa2016/repos","events_url":"https://api.github.com/users/delftswa2016/events{/privacy}","received_events_url":"https://api.github.com/users/delftswa2016/received_events","type":"Organization","site_admin":false},"repo":{"id":53050894,"name":"d3-random","full_name":"delftswa2016/d3-random","owner":{"login":"delftswa2016","id":16455556,"avatar_url":"https://avatars2.githubusercontent.com/u/16455556?v=3","gravatar_id":"","url":"https://api.github.com/users/delftswa2016","html_url":"https://github.com/delftswa2016","followers_url":"https://api.github.com/users/delftswa2016/followers","following_url":"https://api.github.com/users/delftswa2016/following{/other_user}","gists_url":"https://api.github.com/users/delftswa2016/gists{/gist_id}","starred_url":"https://api.github.com/users/delftswa2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delftswa2016/subscriptions","organizations_url":"https://api.github.com/users/delftswa2016/orgs","repos_url":"https://api.github.com/users/delftswa2016/repos","events_url":"https://api.github.com/users/delftswa2016/events{/privacy}","received_events_url":"https://api.github.com/users/delftswa2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/delftswa2016/d3-random","description":"Generate random numbers from various distributions.","fork":true,"url":"https://api.github.com/repos/delftswa2016/d3-random","forks_url":"https://api.github.com/repos/delftswa2016/d3-random/forks","keys_url":"https://api.github.com/repos/delftswa2016/d3-random/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delftswa2016/d3-random/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delftswa2016/d3-random/teams","hooks_url":"https://api.github.com/repos/delftswa2016/d3-random/hooks","issue_events_url":"https://api.github.com/repos/delftswa2016/d3-random/issues/events{/number}","events_url":"https://api.github.com/repos/delftswa2016/d3-random/events","assignees_url":"https://api.github.com/repos/delftswa2016/d3-random/assignees{/user}","branches_url":"https://api.github.com/repos/delftswa2016/d3-random/branches{/branch}","tags_url":"https://api.github.com/repos/delftswa2016/d3-random/tags","blobs_url":"https://api.github.com/repos/delftswa2016/d3-random/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delftswa2016/d3-random/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delftswa2016/d3-random/git/refs{/sha}","trees_url":"https://api.github.com/repos/delftswa2016/d3-random/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delftswa2016/d3-random/statuses/{sha}","languages_url":"https://api.github.com/repos/delftswa2016/d3-random/languages","stargazers_url":"https://api.github.com/repos/delftswa2016/d3-random/stargazers","contributors_url":"https://api.github.com/repos/delftswa2016/d3-random/contributors","subscribers_url":"https://api.github.com/repos/delftswa2016/d3-random/subscribers","subscription_url":"https://api.github.com/repos/delftswa2016/d3-random/subscription","commits_url":"https://api.github.com/repos/delftswa2016/d3-random/commits{/sha}","git_commits_url":"https://api.github.com/repos/delftswa2016/d3-random/git/commits{/sha}","comments_url":"https://api.github.com/repos/delftswa2016/d3-random/comments{/number}","issue_comment_url":"https://api.github.com/repos/delftswa2016/d3-random/issues/comments{/number}","contents_url":"https://api.github.com/repos/delftswa2016/d3-random/contents/{+path}","compare_url":"https://api.github.com/repos/delftswa2016/d3-random/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delftswa2016/d3-random/merges","archive_url":"https://api.github.com/repos/delftswa2016/d3-random/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delftswa2016/d3-random/downloads","issues_url":"https://api.github.com/repos/delftswa2016/d3-random/issues{/number}","pulls_url":"https://api.github.com/repos/delftswa2016/d3-random/pulls{/number}","milestones_url":"https://api.github.com/repos/delftswa2016/d3-random/milestones{/number}","notifications_url":"https://api.github.com/repos/delftswa2016/d3-random/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delftswa2016/d3-random/labels{/name}","releases_url":"https://api.github.com/repos/delftswa2016/d3-random/releases{/id}","deployments_url":"https://api.github.com/repos/delftswa2016/d3-random/deployments","created_at":"2016-03-03T13:06:30Z","updated_at":"2016-03-03T13:06:31Z","pushed_at":"2016-06-14T21:30:35Z","git_url":"git://github.com/delftswa2016/d3-random.git","ssh_url":"git@github.com:delftswa2016/d3-random.git","clone_url":"https://github.com/delftswa2016/d3-random.git","svn_url":"https://github.com/delftswa2016/d3-random","homepage":null,"size":51,"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":"2345a49c6f9e3707f6e3830bc8ccf4753a5e954e","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-03T17:23:16Z","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":53,"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":4,"forks":12,"open_issues":4,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/d3/d3-random/pulls/14"},"html":{"href":"https://github.com/d3/d3-random/pull/14"},"issue":{"href":"https://api.github.com/repos/d3/d3-random/issues/14"},"comments":{"href":"https://api.github.com/repos/d3/d3-random/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/d3/d3-random/pulls/14/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/14/commits"},"statuses":{"href":"https://api.github.com/repos/d3/d3-random/statuses/be71db147df5524c667f3c77bc85ac1e48c492b6"}}}}
{"actor":{"display_login":"mbostock"}}