{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6824","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6824/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6824/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6824/events","html_url":"https://github.com/numpy/numpy/pull/6824","id":121833798,"number":6824,"title":"Allow for larger int64s in random.randint","user":{"login":"gfyoung","id":9273653,"avatar_url":"https://avatars.githubusercontent.com/u/9273653?v=3","gravatar_id":"","url":"https://api.github.com/users/gfyoung","html_url":"https://github.com/gfyoung","followers_url":"https://api.github.com/users/gfyoung/followers","following_url":"https://api.github.com/users/gfyoung/following{/other_user}","gists_url":"https://api.github.com/users/gfyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/gfyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfyoung/subscriptions","organizations_url":"https://api.github.com/users/gfyoung/orgs","repos_url":"https://api.github.com/users/gfyoung/repos","events_url":"https://api.github.com/users/gfyoung/events{/privacy}","received_events_url":"https://api.github.com/users/gfyoung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.random","name":"component: numpy.random","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Enhancement","name":"Enhancement","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-12-12T04:57:47Z","updated_at":"2015-12-21T10:16:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/6824","html_url":"https://github.com/numpy/numpy/pull/6824","diff_url":"https://github.com/numpy/numpy/pull/6824.diff","patch_url":"https://github.com/numpy/numpy/pull/6824.patch"},"body":"Addresses enhancement requested in #6812 in which attempts to generate random, large 64-bit integers was causing overflow issues in Windows.  This PR allows such generation to be done."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/166260684","html_url":"https://github.com/numpy/numpy/pull/6824#issuecomment-166260684","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6824","id":166260684,"user":{"login":"rkern","id":46135,"avatar_url":"https://avatars.githubusercontent.com/u/46135?v=3","gravatar_id":"","url":"https://api.github.com/users/rkern","html_url":"https://github.com/rkern","followers_url":"https://api.github.com/users/rkern/followers","following_url":"https://api.github.com/users/rkern/following{/other_user}","gists_url":"https://api.github.com/users/rkern/gists{/gist_id}","starred_url":"https://api.github.com/users/rkern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkern/subscriptions","organizations_url":"https://api.github.com/users/rkern/orgs","repos_url":"https://api.github.com/users/rkern/repos","events_url":"https://api.github.com/users/rkern/events{/privacy}","received_events_url":"https://api.github.com/users/rkern/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T10:16:35Z","updated_at":"2015-12-21T10:16:35Z","body":"`rk_random()` returns an `unsigned long` which does indeed generate numbers up through `RK_MAX`. The problem with `RandomState.randint()` is that it takes *signed* `longs` for the bounds and does signed `long` arithmetic. You only need to modify `randint()`, not the core PRNG."}}