{"action":"created","comment":{"url":"https://api.github.com/repos/brson/rust-cookbook/pulls/comments/129150476","pull_request_review_id":51894456,"id":129150476,"diff_hunk":"@@ -168,7 +158,7 @@ fn main() {\n }\n ```\n \n-Alternatively, one can use the [`Range`](https://doc.rust-lang.org/rand/rand/distributions/range/struct.Range.html) distribution.\n+Alternatively, one can use the [`Range`] distribution (otherwise known as uniform).","path":"src/basics.md","position":null,"original_position":62,"commit_id":"ccd43b4efa8b8d9ce0fcc58020e02fc3e764c1ce","original_commit_id":"ccd43b4efa8b8d9ce0fcc58020e02fc3e764c1ce","user":{"login":"budziq","id":221000,"avatar_url":"https://avatars2.githubusercontent.com/u/221000?v=4","gravatar_id":"","url":"https://api.github.com/users/budziq","html_url":"https://github.com/budziq","followers_url":"https://api.github.com/users/budziq/followers","following_url":"https://api.github.com/users/budziq/following{/other_user}","gists_url":"https://api.github.com/users/budziq/gists{/gist_id}","starred_url":"https://api.github.com/users/budziq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budziq/subscriptions","organizations_url":"https://api.github.com/users/budziq/orgs","repos_url":"https://api.github.com/users/budziq/repos","events_url":"https://api.github.com/users/budziq/events{/privacy}","received_events_url":"https://api.github.com/users/budziq/received_events","type":"User","site_admin":false},"body":"I meant making \"uniform\" into a link pointing to something like:\r\n\r\nhttps://en.m.wikipedia.org/wiki/Uniform_distribution_(continuous)","created_at":"2017-07-24T20:52:13Z","updated_at":"2017-07-24T20:52:13Z","html_url":"https://github.com/brson/rust-cookbook/pull/255#discussion_r129150476","pull_request_url":"https://api.github.com/repos/brson/rust-cookbook/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/brson/rust-cookbook/pulls/comments/129150476"},"html":{"href":"https://github.com/brson/rust-cookbook/pull/255#discussion_r129150476"},"pull_request":{"href":"https://api.github.com/repos/brson/rust-cookbook/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/brson/rust-cookbook/pulls/255","id":131900736,"html_url":"https://github.com/brson/rust-cookbook/pull/255","diff_url":"https://github.com/brson/rust-cookbook/pull/255.diff","patch_url":"https://github.com/brson/rust-cookbook/pull/255.patch","issue_url":"https://api.github.com/repos/brson/rust-cookbook/issues/255","number":255,"state":"open","locked":false,"title":"Basics: improve random number examples","user":{"login":"dhardy","id":134893,"avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"body":"I noticed the random examples were quite short and didn't document range for floating point cases. Improved.\r\n\r\nCaveat: this doesn't explain why the `.ind_sample` method is used. I don't understand myself why the `Sample` trait (taking mutable reference to the range) exists, and if it does have a use-case it should probably have been named `MutSample`. But I digress.","created_at":"2017-07-22T14:19:25Z","updated_at":"2017-07-24T20:52:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fb184ae3f9092ad12e7b6306d3021abb0489543","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/brson/rust-cookbook/pulls/255/commits","review_comments_url":"https://api.github.com/repos/brson/rust-cookbook/pulls/255/comments","review_comment_url":"https://api.github.com/repos/brson/rust-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brson/rust-cookbook/issues/255/comments","statuses_url":"https://api.github.com/repos/brson/rust-cookbook/statuses/ccd43b4efa8b8d9ce0fcc58020e02fc3e764c1ce","head":{"label":"dhardy:basics-random","ref":"basics-random","sha":"ccd43b4efa8b8d9ce0fcc58020e02fc3e764c1ce","user":{"login":"dhardy","id":134893,"avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"repo":{"id":98035710,"name":"rust-cookbook","full_name":"dhardy/rust-cookbook","owner":{"login":"dhardy","id":134893,"avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhardy/rust-cookbook","description":null,"fork":true,"url":"https://api.github.com/repos/dhardy/rust-cookbook","forks_url":"https://api.github.com/repos/dhardy/rust-cookbook/forks","keys_url":"https://api.github.com/repos/dhardy/rust-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhardy/rust-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhardy/rust-cookbook/teams","hooks_url":"https://api.github.com/repos/dhardy/rust-cookbook/hooks","issue_events_url":"https://api.github.com/repos/dhardy/rust-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/dhardy/rust-cookbook/events","assignees_url":"https://api.github.com/repos/dhardy/rust-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/dhardy/rust-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/dhardy/rust-cookbook/tags","blobs_url":"https://api.github.com/repos/dhardy/rust-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhardy/rust-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhardy/rust-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhardy/rust-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhardy/rust-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/dhardy/rust-cookbook/languages","stargazers_url":"https://api.github.com/repos/dhardy/rust-cookbook/stargazers","contributors_url":"https://api.github.com/repos/dhardy/rust-cookbook/contributors","subscribers_url":"https://api.github.com/repos/dhardy/rust-cookbook/subscribers","subscription_url":"https://api.github.com/repos/dhardy/rust-cookbook/subscription","commits_url":"https://api.github.com/repos/dhardy/rust-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhardy/rust-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhardy/rust-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhardy/rust-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhardy/rust-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/dhardy/rust-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhardy/rust-cookbook/merges","archive_url":"https://api.github.com/repos/dhardy/rust-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhardy/rust-cookbook/downloads","issues_url":"https://api.github.com/repos/dhardy/rust-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/dhardy/rust-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/dhardy/rust-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/dhardy/rust-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhardy/rust-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/dhardy/rust-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/dhardy/rust-cookbook/deployments","created_at":"2017-07-22T14:15:15Z","updated_at":"2017-07-22T14:15:16Z","pushed_at":"2017-07-24T11:40:22Z","git_url":"git://github.com/dhardy/rust-cookbook.git","ssh_url":"git@github.com:dhardy/rust-cookbook.git","clone_url":"https://github.com/dhardy/rust-cookbook.git","svn_url":"https://github.com/dhardy/rust-cookbook","homepage":"https://brson.github.io/rust-cookbook","size":1054,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"brson:master","ref":"master","sha":"6eb1f9e434b6c5805c4fe45a321e8a5682cbe5c0","user":{"login":"brson","id":147214,"avatar_url":"https://avatars0.githubusercontent.com/u/147214?v=4","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"repo":{"id":82722984,"name":"rust-cookbook","full_name":"brson/rust-cookbook","owner":{"login":"brson","id":147214,"avatar_url":"https://avatars0.githubusercontent.com/u/147214?v=4","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brson/rust-cookbook","description":null,"fork":false,"url":"https://api.github.com/repos/brson/rust-cookbook","forks_url":"https://api.github.com/repos/brson/rust-cookbook/forks","keys_url":"https://api.github.com/repos/brson/rust-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brson/rust-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brson/rust-cookbook/teams","hooks_url":"https://api.github.com/repos/brson/rust-cookbook/hooks","issue_events_url":"https://api.github.com/repos/brson/rust-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/brson/rust-cookbook/events","assignees_url":"https://api.github.com/repos/brson/rust-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/brson/rust-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/brson/rust-cookbook/tags","blobs_url":"https://api.github.com/repos/brson/rust-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brson/rust-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brson/rust-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/brson/rust-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brson/rust-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/brson/rust-cookbook/languages","stargazers_url":"https://api.github.com/repos/brson/rust-cookbook/stargazers","contributors_url":"https://api.github.com/repos/brson/rust-cookbook/contributors","subscribers_url":"https://api.github.com/repos/brson/rust-cookbook/subscribers","subscription_url":"https://api.github.com/repos/brson/rust-cookbook/subscription","commits_url":"https://api.github.com/repos/brson/rust-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/brson/rust-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/brson/rust-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/brson/rust-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/brson/rust-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/brson/rust-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brson/rust-cookbook/merges","archive_url":"https://api.github.com/repos/brson/rust-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brson/rust-cookbook/downloads","issues_url":"https://api.github.com/repos/brson/rust-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/brson/rust-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/brson/rust-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/brson/rust-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brson/rust-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/brson/rust-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/brson/rust-cookbook/deployments","created_at":"2017-02-21T20:17:58Z","updated_at":"2017-07-24T20:17:02Z","pushed_at":"2017-07-24T13:11:02Z","git_url":"git://github.com/brson/rust-cookbook.git","ssh_url":"git@github.com:brson/rust-cookbook.git","clone_url":"https://github.com/brson/rust-cookbook.git","svn_url":"https://github.com/brson/rust-cookbook","homepage":"https://brson.github.io/rust-cookbook","size":1046,"stargazers_count":263,"watchers_count":263,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":60,"forks":64,"open_issues":60,"watchers":263,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brson/rust-cookbook/pulls/255"},"html":{"href":"https://github.com/brson/rust-cookbook/pull/255"},"issue":{"href":"https://api.github.com/repos/brson/rust-cookbook/issues/255"},"comments":{"href":"https://api.github.com/repos/brson/rust-cookbook/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/brson/rust-cookbook/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/brson/rust-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brson/rust-cookbook/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/brson/rust-cookbook/statuses/ccd43b4efa8b8d9ce0fcc58020e02fc3e764c1ce"}}}}
{"actor":{"display_login":"budziq"}}