{"action":"created","comment":{"url":"https://api.github.com/repos/numba/numba/pulls/comments/24758102","id":24758102,"diff_hunk":"@@ -133,6 +133,80 @@ The following constructors are supported, only with a numeric input:\n * :class:`numpy.uintp`\n \n \n+Modules\n+=======\n+\n+``random``\n+----------\n+\n+Numba supports top-level functions from the\n+`numpy.random <http://docs.scipy.org/doc/numpy/reference/routines.random.html>`_\n+module, but does not allow you to create individual RandomState instances.\n+The same algorithms are used as for :ref:`the standard\n+random module <pysupported-random>` (and therefore the same notes apply),\n+but with an independent internal state: seeding or drawning numbers from\n+one generator won't affect the other.\n+\n+The following functions are supported, but only with scalar output: you can't\n+pass a *size* argument.\n+","path":"docs/source/reference/numpysupported.rst","position":20,"original_position":20,"commit_id":"241c9240e46aa6dc2681bb6005d31b33a7994f4d","original_commit_id":"241c9240e46aa6dc2681bb6005d31b33a7994f4d","user":{"login":"seibert","id":425352,"avatar_url":"https://avatars.githubusercontent.com/u/425352?v=3","gravatar_id":"","url":"https://api.github.com/users/seibert","html_url":"https://github.com/seibert","followers_url":"https://api.github.com/users/seibert/followers","following_url":"https://api.github.com/users/seibert/following{/other_user}","gists_url":"https://api.github.com/users/seibert/gists{/gist_id}","starred_url":"https://api.github.com/users/seibert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seibert/subscriptions","organizations_url":"https://api.github.com/users/seibert/orgs","repos_url":"https://api.github.com/users/seibert/repos","events_url":"https://api.github.com/users/seibert/events{/privacy}","received_events_url":"https://api.github.com/users/seibert/received_events","type":"User","site_admin":false},"body":"Do we need the same `fork()` warning for the Numpy RNG as we have for the Python RNG?","created_at":"2015-02-16T15:47:11Z","updated_at":"2015-02-16T15:47:11Z","html_url":"https://github.com/numba/numba/pull/981#discussion_r24758102","pull_request_url":"https://api.github.com/repos/numba/numba/pulls/981","_links":{"self":{"href":"https://api.github.com/repos/numba/numba/pulls/comments/24758102"},"html":{"href":"https://github.com/numba/numba/pull/981#discussion_r24758102"},"pull_request":{"href":"https://api.github.com/repos/numba/numba/pulls/981"}}},"pull_request":{"url":"https://api.github.com/repos/numba/numba/pulls/981","id":28662621,"html_url":"https://github.com/numba/numba/pull/981","diff_url":"https://github.com/numba/numba/pull/981.diff","patch_url":"https://github.com/numba/numba/pull/981.patch","issue_url":"https://api.github.com/repos/numba/numba/issues/981","number":981,"state":"open","locked":false,"title":"Implement random and np.random","user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-04T18:31:47Z","updated_at":"2015-02-16T15:47:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbc79dce152ae3bc31d8ee5ad64d2a5d52458404","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numba/numba/pulls/981/commits","review_comments_url":"https://api.github.com/repos/numba/numba/pulls/981/comments","review_comment_url":"https://api.github.com/repos/numba/numba/pulls/comments/{number}","comments_url":"https://api.github.com/repos/numba/numba/issues/981/comments","statuses_url":"https://api.github.com/repos/numba/numba/statuses/241c9240e46aa6dc2681bb6005d31b33a7994f4d","head":{"label":"pitrou:random","ref":"random","sha":"241c9240e46aa6dc2681bb6005d31b33a7994f4d","user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"repo":{"id":20031101,"name":"numba","full_name":"pitrou/numba","owner":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pitrou/numba","description":"NumPy aware dynamic Python compiler using LLVM","fork":true,"url":"https://api.github.com/repos/pitrou/numba","forks_url":"https://api.github.com/repos/pitrou/numba/forks","keys_url":"https://api.github.com/repos/pitrou/numba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pitrou/numba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pitrou/numba/teams","hooks_url":"https://api.github.com/repos/pitrou/numba/hooks","issue_events_url":"https://api.github.com/repos/pitrou/numba/issues/events{/number}","events_url":"https://api.github.com/repos/pitrou/numba/events","assignees_url":"https://api.github.com/repos/pitrou/numba/assignees{/user}","branches_url":"https://api.github.com/repos/pitrou/numba/branches{/branch}","tags_url":"https://api.github.com/repos/pitrou/numba/tags","blobs_url":"https://api.github.com/repos/pitrou/numba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pitrou/numba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pitrou/numba/git/refs{/sha}","trees_url":"https://api.github.com/repos/pitrou/numba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pitrou/numba/statuses/{sha}","languages_url":"https://api.github.com/repos/pitrou/numba/languages","stargazers_url":"https://api.github.com/repos/pitrou/numba/stargazers","contributors_url":"https://api.github.com/repos/pitrou/numba/contributors","subscribers_url":"https://api.github.com/repos/pitrou/numba/subscribers","subscription_url":"https://api.github.com/repos/pitrou/numba/subscription","commits_url":"https://api.github.com/repos/pitrou/numba/commits{/sha}","git_commits_url":"https://api.github.com/repos/pitrou/numba/git/commits{/sha}","comments_url":"https://api.github.com/repos/pitrou/numba/comments{/number}","issue_comment_url":"https://api.github.com/repos/pitrou/numba/issues/comments/{number}","contents_url":"https://api.github.com/repos/pitrou/numba/contents/{+path}","compare_url":"https://api.github.com/repos/pitrou/numba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pitrou/numba/merges","archive_url":"https://api.github.com/repos/pitrou/numba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pitrou/numba/downloads","issues_url":"https://api.github.com/repos/pitrou/numba/issues{/number}","pulls_url":"https://api.github.com/repos/pitrou/numba/pulls{/number}","milestones_url":"https://api.github.com/repos/pitrou/numba/milestones{/number}","notifications_url":"https://api.github.com/repos/pitrou/numba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pitrou/numba/labels{/name}","releases_url":"https://api.github.com/repos/pitrou/numba/releases{/id}","created_at":"2014-05-21T17:50:14Z","updated_at":"2014-11-27T20:19:50Z","pushed_at":"2015-02-16T15:41:00Z","git_url":"git://github.com/pitrou/numba.git","ssh_url":"git@github.com:pitrou/numba.git","clone_url":"https://github.com/pitrou/numba.git","svn_url":"https://github.com/pitrou/numba","homepage":"","size":19003,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"numba:master","ref":"master","sha":"483903094bcbf33c1e65bf9bdb5aeb5861e1b22c","user":{"login":"numba","id":1628082,"avatar_url":"https://avatars.githubusercontent.com/u/1628082?v=3","gravatar_id":"","url":"https://api.github.com/users/numba","html_url":"https://github.com/numba","followers_url":"https://api.github.com/users/numba/followers","following_url":"https://api.github.com/users/numba/following{/other_user}","gists_url":"https://api.github.com/users/numba/gists{/gist_id}","starred_url":"https://api.github.com/users/numba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numba/subscriptions","organizations_url":"https://api.github.com/users/numba/orgs","repos_url":"https://api.github.com/users/numba/repos","events_url":"https://api.github.com/users/numba/events{/privacy}","received_events_url":"https://api.github.com/users/numba/received_events","type":"Organization","site_admin":false},"repo":{"id":3659275,"name":"numba","full_name":"numba/numba","owner":{"login":"numba","id":1628082,"avatar_url":"https://avatars.githubusercontent.com/u/1628082?v=3","gravatar_id":"","url":"https://api.github.com/users/numba","html_url":"https://github.com/numba","followers_url":"https://api.github.com/users/numba/followers","following_url":"https://api.github.com/users/numba/following{/other_user}","gists_url":"https://api.github.com/users/numba/gists{/gist_id}","starred_url":"https://api.github.com/users/numba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numba/subscriptions","organizations_url":"https://api.github.com/users/numba/orgs","repos_url":"https://api.github.com/users/numba/repos","events_url":"https://api.github.com/users/numba/events{/privacy}","received_events_url":"https://api.github.com/users/numba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numba/numba","description":"NumPy aware dynamic Python compiler using LLVM","fork":false,"url":"https://api.github.com/repos/numba/numba","forks_url":"https://api.github.com/repos/numba/numba/forks","keys_url":"https://api.github.com/repos/numba/numba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numba/numba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numba/numba/teams","hooks_url":"https://api.github.com/repos/numba/numba/hooks","issue_events_url":"https://api.github.com/repos/numba/numba/issues/events{/number}","events_url":"https://api.github.com/repos/numba/numba/events","assignees_url":"https://api.github.com/repos/numba/numba/assignees{/user}","branches_url":"https://api.github.com/repos/numba/numba/branches{/branch}","tags_url":"https://api.github.com/repos/numba/numba/tags","blobs_url":"https://api.github.com/repos/numba/numba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numba/numba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numba/numba/git/refs{/sha}","trees_url":"https://api.github.com/repos/numba/numba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numba/numba/statuses/{sha}","languages_url":"https://api.github.com/repos/numba/numba/languages","stargazers_url":"https://api.github.com/repos/numba/numba/stargazers","contributors_url":"https://api.github.com/repos/numba/numba/contributors","subscribers_url":"https://api.github.com/repos/numba/numba/subscribers","subscription_url":"https://api.github.com/repos/numba/numba/subscription","commits_url":"https://api.github.com/repos/numba/numba/commits{/sha}","git_commits_url":"https://api.github.com/repos/numba/numba/git/commits{/sha}","comments_url":"https://api.github.com/repos/numba/numba/comments{/number}","issue_comment_url":"https://api.github.com/repos/numba/numba/issues/comments/{number}","contents_url":"https://api.github.com/repos/numba/numba/contents/{+path}","compare_url":"https://api.github.com/repos/numba/numba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numba/numba/merges","archive_url":"https://api.github.com/repos/numba/numba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numba/numba/downloads","issues_url":"https://api.github.com/repos/numba/numba/issues{/number}","pulls_url":"https://api.github.com/repos/numba/numba/pulls{/number}","milestones_url":"https://api.github.com/repos/numba/numba/milestones{/number}","notifications_url":"https://api.github.com/repos/numba/numba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numba/numba/labels{/name}","releases_url":"https://api.github.com/repos/numba/numba/releases{/id}","created_at":"2012-03-08T11:12:43Z","updated_at":"2015-02-16T15:32:23Z","pushed_at":"2015-02-16T15:32:21Z","git_url":"git://github.com/numba/numba.git","ssh_url":"git@github.com:numba/numba.git","clone_url":"https://github.com/numba/numba.git","svn_url":"https://github.com/numba/numba","homepage":"","size":26053,"stargazers_count":1363,"watchers_count":1363,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":144,"mirror_url":null,"open_issues_count":170,"forks":144,"open_issues":170,"watchers":1363,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numba/numba/pulls/981"},"html":{"href":"https://github.com/numba/numba/pull/981"},"issue":{"href":"https://api.github.com/repos/numba/numba/issues/981"},"comments":{"href":"https://api.github.com/repos/numba/numba/issues/981/comments"},"review_comments":{"href":"https://api.github.com/repos/numba/numba/pulls/981/comments"},"review_comment":{"href":"https://api.github.com/repos/numba/numba/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/numba/numba/pulls/981/commits"},"statuses":{"href":"https://api.github.com/repos/numba/numba/statuses/241c9240e46aa6dc2681bb6005d31b33a7994f4d"}}}}