{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/8204","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/8204/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/8204/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/8204/events","html_url":"https://github.com/numpy/numpy/issues/8204","id":184672171,"number":8204,"title":"enhancement: provide numpy.random.shuffle(a, b, ...), 2 arrays in unison","user":{"login":"mingwugmail","id":2108254,"avatar_url":"https://avatars.githubusercontent.com/u/2108254?v=3","gravatar_id":"","url":"https://api.github.com/users/mingwugmail","html_url":"https://github.com/mingwugmail","followers_url":"https://api.github.com/users/mingwugmail/followers","following_url":"https://api.github.com/users/mingwugmail/following{/other_user}","gists_url":"https://api.github.com/users/mingwugmail/gists{/gist_id}","starred_url":"https://api.github.com/users/mingwugmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingwugmail/subscriptions","organizations_url":"https://api.github.com/users/mingwugmail/orgs","repos_url":"https://api.github.com/users/mingwugmail/repos","events_url":"https://api.github.com/users/mingwugmail/events{/privacy}","received_events_url":"https://api.github.com/users/mingwugmail/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-23T05:19:23Z","updated_at":"2016-11-29T10:48:18Z","closed_at":null,"body":"http://stackoverflow.com/questions/4601373/better-way-to-shuffle-two-numpy-arrays-in-unison\n\nnumpy.random.shuffle only shuffle 1 array in-place.\n\nIt will be better to provide another function to shuffle 2 / multiple arrays in-place, and in unison.\n\nI like the proposed:\n\ndef shuffle_in_unison_scary(a, b):\n    rng_state = numpy.random.get_state()\n    numpy.random.shuffle(a)\n    numpy.random.set_state(rng_state)\n    numpy.random.shuffle(b)\n\nAnd want numpy guys to confirm this implementation, and add to numpy library itself.\n"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/263537888","html_url":"https://github.com/numpy/numpy/issues/8204#issuecomment-263537888","issue_url":"https://api.github.com/repos/numpy/numpy/issues/8204","id":263537888,"user":{"login":"andanis","id":17438868,"avatar_url":"https://avatars.githubusercontent.com/u/17438868?v=3","gravatar_id":"","url":"https://api.github.com/users/andanis","html_url":"https://github.com/andanis","followers_url":"https://api.github.com/users/andanis/followers","following_url":"https://api.github.com/users/andanis/following{/other_user}","gists_url":"https://api.github.com/users/andanis/gists{/gist_id}","starred_url":"https://api.github.com/users/andanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andanis/subscriptions","organizations_url":"https://api.github.com/users/andanis/orgs","repos_url":"https://api.github.com/users/andanis/repos","events_url":"https://api.github.com/users/andanis/events{/privacy}","received_events_url":"https://api.github.com/users/andanis/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T10:48:18Z","updated_at":"2016-11-29T10:48:18Z","body":"http://rasbt.github.io/mlxtend/user_guide/preprocessing/shuffle_arrays_unison/"}}
{"actor":{"display_login":"andanis"}}