{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/comments/79919956","id":79919956,"diff_hunk":"@@ -197,3 +196,37 @@ const Pwilcox     = @compat pwilcox.(Rwilcox, 13, 17)\n @compat allEq(Runif,\t  qunif.(log.(1 .- Punif), .2, 2, false, true))\n @compat allEq(Rweibull,   qweibull.(log.(1 .- Pweibull), 3, 2, false, true))\n @compat allEq(Rwilcox,\t  qwilcox.(log.(1 .- Pwilcox), 13, 17, false, true))\n+\n+## Test if srand working correctly\n+srand(124)\n+Rbeta2\t  = rbeta(n, .8, 2)\n+Rbinom2\t  = rbinom(n, 55, pi/16)\n+Rcauchy2   = rcauchy(n, 12, 2)\n+Rchisq2\t  = rchisq(n, 3)\n+Rexp2\t  = rexp(n, 2)\n+Rf2\t  = rf(n, 12, 6)\n+Rgamma2\t  = rgamma(n, 2, 5)\n+Rgeom2\t  = rgeom(n, pi/16)\n+Rhyper2\t  = rhyper(n, 40, 30, 20)\n+Rlnorm2\t  = rlnorm(n, -1, 3)\n+Rlogis2\t  = rlogis(n, 12, 2)\n+Rnbinom2   = rnbinom(n, 7, .01)\n+Rnorm2\t  = rnorm(n, -1, 3)\n+Rpois2\t  = rpois(n, 12)\n+Rsignrank2 = rsignrank(n, 47)","path":"test/runtests.jl","position":29,"original_position":29,"commit_id":"1beb64c11154cbcb1ea2c3fe39d723fd6d5f4589","original_commit_id":"1beb64c11154cbcb1ea2c3fe39d723fd6d5f4589","user":{"login":"ararslan","id":6396159,"avatar_url":"https://avatars.githubusercontent.com/u/6396159?v=3","gravatar_id":"","url":"https://api.github.com/users/ararslan","html_url":"https://github.com/ararslan","followers_url":"https://api.github.com/users/ararslan/followers","following_url":"https://api.github.com/users/ararslan/following{/other_user}","gists_url":"https://api.github.com/users/ararslan/gists{/gist_id}","starred_url":"https://api.github.com/users/ararslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ararslan/subscriptions","organizations_url":"https://api.github.com/users/ararslan/orgs","repos_url":"https://api.github.com/users/ararslan/repos","events_url":"https://api.github.com/users/ararslan/events{/privacy}","received_events_url":"https://api.github.com/users/ararslan/received_events","type":"User","site_admin":false},"body":"Why not put these inside the `allEq`, as is done with `Rwilcox` et al.?","created_at":"2016-09-21T20:02:25Z","updated_at":"2016-09-21T20:02:25Z","html_url":"https://github.com/JuliaStats/Rmath.jl/pull/14#discussion_r79919956","pull_request_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/comments/79919956"},"html":{"href":"https://github.com/JuliaStats/Rmath.jl/pull/14#discussion_r79919956"},"pull_request":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14","id":82990578,"html_url":"https://github.com/JuliaStats/Rmath.jl/pull/14","diff_url":"https://github.com/JuliaStats/Rmath.jl/pull/14.diff","patch_url":"https://github.com/JuliaStats/Rmath.jl/pull/14.patch","issue_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues/14","number":14,"state":"open","locked":false,"title":"Add tests if srand can fix the random numbers","user":{"login":"panlanfeng","id":1134797,"avatar_url":"https://avatars.githubusercontent.com/u/1134797?v=3","gravatar_id":"","url":"https://api.github.com/users/panlanfeng","html_url":"https://github.com/panlanfeng","followers_url":"https://api.github.com/users/panlanfeng/followers","following_url":"https://api.github.com/users/panlanfeng/following{/other_user}","gists_url":"https://api.github.com/users/panlanfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/panlanfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panlanfeng/subscriptions","organizations_url":"https://api.github.com/users/panlanfeng/orgs","repos_url":"https://api.github.com/users/panlanfeng/repos","events_url":"https://api.github.com/users/panlanfeng/events{/privacy}","received_events_url":"https://api.github.com/users/panlanfeng/received_events","type":"User","site_admin":false},"body":"Add tests for `srand`. Or many may fail to realized they are using the wrong library, only finding out all their previous results could not be reproduced, as I did.","created_at":"2016-08-27T15:21:36Z","updated_at":"2016-09-21T20:02:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea15c5c8acb1f9b91d0f8a8c1d3960d50c74498d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14/commits","review_comments_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14/comments","review_comment_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues/14/comments","statuses_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/statuses/1beb64c11154cbcb1ea2c3fe39d723fd6d5f4589","head":{"label":"panlanfeng:srand","ref":"srand","sha":"1beb64c11154cbcb1ea2c3fe39d723fd6d5f4589","user":{"login":"panlanfeng","id":1134797,"avatar_url":"https://avatars.githubusercontent.com/u/1134797?v=3","gravatar_id":"","url":"https://api.github.com/users/panlanfeng","html_url":"https://github.com/panlanfeng","followers_url":"https://api.github.com/users/panlanfeng/followers","following_url":"https://api.github.com/users/panlanfeng/following{/other_user}","gists_url":"https://api.github.com/users/panlanfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/panlanfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panlanfeng/subscriptions","organizations_url":"https://api.github.com/users/panlanfeng/orgs","repos_url":"https://api.github.com/users/panlanfeng/repos","events_url":"https://api.github.com/users/panlanfeng/events{/privacy}","received_events_url":"https://api.github.com/users/panlanfeng/received_events","type":"User","site_admin":false},"repo":{"id":66720698,"name":"Rmath.jl","full_name":"panlanfeng/Rmath.jl","owner":{"login":"panlanfeng","id":1134797,"avatar_url":"https://avatars.githubusercontent.com/u/1134797?v=3","gravatar_id":"","url":"https://api.github.com/users/panlanfeng","html_url":"https://github.com/panlanfeng","followers_url":"https://api.github.com/users/panlanfeng/followers","following_url":"https://api.github.com/users/panlanfeng/following{/other_user}","gists_url":"https://api.github.com/users/panlanfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/panlanfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panlanfeng/subscriptions","organizations_url":"https://api.github.com/users/panlanfeng/orgs","repos_url":"https://api.github.com/users/panlanfeng/repos","events_url":"https://api.github.com/users/panlanfeng/events{/privacy}","received_events_url":"https://api.github.com/users/panlanfeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/panlanfeng/Rmath.jl","description":"Archive of functions that emulate R's d-p-q-r functions for probability distributions","fork":true,"url":"https://api.github.com/repos/panlanfeng/Rmath.jl","forks_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/forks","keys_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/teams","hooks_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/hooks","issue_events_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/issues/events{/number}","events_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/events","assignees_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/assignees{/user}","branches_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/branches{/branch}","tags_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/tags","blobs_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/languages","stargazers_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/stargazers","contributors_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/contributors","subscribers_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/subscribers","subscription_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/subscription","commits_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/contents/{+path}","compare_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/merges","archive_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/downloads","issues_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/issues{/number}","pulls_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/labels{/name}","releases_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/releases{/id}","deployments_url":"https://api.github.com/repos/panlanfeng/Rmath.jl/deployments","created_at":"2016-08-27T15:16:30Z","updated_at":"2016-08-27T15:16:31Z","pushed_at":"2016-09-21T18:46:56Z","git_url":"git://github.com/panlanfeng/Rmath.jl.git","ssh_url":"git@github.com:panlanfeng/Rmath.jl.git","clone_url":"https://github.com/panlanfeng/Rmath.jl.git","svn_url":"https://github.com/panlanfeng/Rmath.jl","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"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":"JuliaStats:master","ref":"master","sha":"d43c100d5d56342233025fd912cf82ea1ac03376","user":{"login":"JuliaStats","id":2761531,"avatar_url":"https://avatars.githubusercontent.com/u/2761531?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"repo":{"id":8559305,"name":"Rmath.jl","full_name":"JuliaStats/Rmath.jl","owner":{"login":"JuliaStats","id":2761531,"avatar_url":"https://avatars.githubusercontent.com/u/2761531?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaStats/Rmath.jl","description":"Archive of functions that emulate R's d-p-q-r functions for probability distributions","fork":false,"url":"https://api.github.com/repos/JuliaStats/Rmath.jl","forks_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/forks","keys_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/teams","hooks_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/events","assignees_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/tags","blobs_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/subscription","commits_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/merges","archive_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/downloads","issues_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaStats/Rmath.jl/deployments","created_at":"2013-03-04T16:13:07Z","updated_at":"2016-09-07T07:40:07Z","pushed_at":"2016-09-21T18:46:57Z","git_url":"git://github.com/JuliaStats/Rmath.jl.git","ssh_url":"git@github.com:JuliaStats/Rmath.jl.git","clone_url":"https://github.com/JuliaStats/Rmath.jl.git","svn_url":"https://github.com/JuliaStats/Rmath.jl","homepage":null,"size":44,"stargazers_count":4,"watchers_count":4,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14"},"html":{"href":"https://github.com/JuliaStats/Rmath.jl/pull/14"},"issue":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues/14"},"comments":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaStats/Rmath.jl/statuses/1beb64c11154cbcb1ea2c3fe39d723fd6d5f4589"}}}}
{"actor":{"display_login":"ararslan"}}