{"action":"created","issue":{"url":"https://api.github.com/repos/projectmesa/mesa/issues/572","repository_url":"https://api.github.com/repos/projectmesa/mesa","labels_url":"https://api.github.com/repos/projectmesa/mesa/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/projectmesa/mesa/issues/572/comments","events_url":"https://api.github.com/repos/projectmesa/mesa/issues/572/events","html_url":"https://github.com/projectmesa/mesa/pull/572","id":349763205,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NzkyMjUy","number":572,"title":"Adding model random number generator with __new__","user":{"login":"dmasad","id":596978,"node_id":"MDQ6VXNlcjU5Njk3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/596978?v=4","gravatar_id":"","url":"https://api.github.com/users/dmasad","html_url":"https://github.com/dmasad","followers_url":"https://api.github.com/users/dmasad/followers","following_url":"https://api.github.com/users/dmasad/following{/other_user}","gists_url":"https://api.github.com/users/dmasad/gists{/gist_id}","starred_url":"https://api.github.com/users/dmasad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmasad/subscriptions","organizations_url":"https://api.github.com/users/dmasad/orgs","repos_url":"https://api.github.com/users/dmasad/repos","events_url":"https://api.github.com/users/dmasad/events{/privacy}","received_events_url":"https://api.github.com/users/dmasad/received_events","type":"User","site_admin":false},"labels":[{"id":212476236,"node_id":"MDU6TGFiZWwyMTI0NzYyMzY=","url":"https://api.github.com/repos/projectmesa/mesa/labels/4%20-%20Accept","name":"4 - Accept","color":"6CA999","default":false},{"id":130962368,"node_id":"MDU6TGFiZWwxMzA5NjIzNjg=","url":"https://api.github.com/repos/projectmesa/mesa/labels/help%20wanted","name":"help wanted","color":"fbca04","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-11T20:56:49Z","updated_at":"2018-09-17T08:27:14Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/projectmesa/mesa/pulls/572","html_url":"https://github.com/projectmesa/mesa/pull/572","diff_url":"https://github.com/projectmesa/mesa/pull/572.diff","patch_url":"https://github.com/projectmesa/mesa/pull/572.patch"},"body":"Gives each model its own random-number generator with a seed set at instantiation. This is done by implementing a custom `Model.__new__` method, which adds a seed and a `random.Random` object to the model object when it is created.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/projectmesa/mesa/issues/comments/421926040","html_url":"https://github.com/projectmesa/mesa/pull/572#issuecomment-421926040","issue_url":"https://api.github.com/repos/projectmesa/mesa/issues/572","id":421926040,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTkyNjA0MA==","user":{"login":"Corvince","id":13568919,"node_id":"MDQ6VXNlcjEzNTY4OTE5","avatar_url":"https://avatars2.githubusercontent.com/u/13568919?v=4","gravatar_id":"","url":"https://api.github.com/users/Corvince","html_url":"https://github.com/Corvince","followers_url":"https://api.github.com/users/Corvince/followers","following_url":"https://api.github.com/users/Corvince/following{/other_user}","gists_url":"https://api.github.com/users/Corvince/gists{/gist_id}","starred_url":"https://api.github.com/users/Corvince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Corvince/subscriptions","organizations_url":"https://api.github.com/users/Corvince/orgs","repos_url":"https://api.github.com/users/Corvince/repos","events_url":"https://api.github.com/users/Corvince/events{/privacy}","received_events_url":"https://api.github.com/users/Corvince/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T08:27:14Z","updated_at":"2018-09-17T08:27:14Z","author_association":"COLLABORATOR","body":"Great job so far.\r\n\r\nMinor: The shape_example server.py file still uses random (can be removed completely)\r\n\r\nMajor: The cookiecutter model template still uses random\r\n\r\nChallenge: The `space.py` module still uses random for the [`find_empty()` function](https://github.com/projectmesa/mesa/blob/3df184bbf0026d2441f1edbe550a216d716bfede/mesa/space.py#L345). Since the grid does not \"know\" the model I don't see a straight forward solution. "}}
{"actor":{"display_login":"Corvince"}}