{"action":"created","issue":{"url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI/issues/13","repository_url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI","labels_url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI/issues/13/comments","events_url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI/issues/13/events","html_url":"https://github.com/YSRKEN/KanColleSimulator_KAI/issues/13","id":137258027,"number":13,"title":"乱数生成関数を他のクラスに使用させたい","user":{"login":"YSRKEN","id":3734392,"avatar_url":"https://avatars.githubusercontent.com/u/3734392?v=3","gravatar_id":"","url":"https://api.github.com/users/YSRKEN","html_url":"https://github.com/YSRKEN","followers_url":"https://api.github.com/users/YSRKEN/followers","following_url":"https://api.github.com/users/YSRKEN/following{/other_user}","gists_url":"https://api.github.com/users/YSRKEN/gists{/gist_id}","starred_url":"https://api.github.com/users/YSRKEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YSRKEN/subscriptions","organizations_url":"https://api.github.com/users/YSRKEN/orgs","repos_url":"https://api.github.com/users/YSRKEN/repos","events_url":"https://api.github.com/users/YSRKEN/events{/privacy}","received_events_url":"https://api.github.com/users/YSRKEN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-29T13:40:29Z","updated_at":"2016-02-29T14:17:28Z","closed_at":null,"body":"並列演算が売りですので、Simulatorクラスのメンバ関数にあるRandInt()やRandReal()を他の関数に使用したいのですが、Cで言うところの関数ポインタのC++版って確か関数オブジェクトでしたよね？\r\n今回のケースの場合、どのように引数を設定すれば良いと思いますか？"},"comment":{"url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI/issues/comments/190227610","html_url":"https://github.com/YSRKEN/KanColleSimulator_KAI/issues/13#issuecomment-190227610","issue_url":"https://api.github.com/repos/YSRKEN/KanColleSimulator_KAI/issues/13","id":190227610,"user":{"login":"yumetodo","id":10869046,"avatar_url":"https://avatars.githubusercontent.com/u/10869046?v=3","gravatar_id":"","url":"https://api.github.com/users/yumetodo","html_url":"https://github.com/yumetodo","followers_url":"https://api.github.com/users/yumetodo/followers","following_url":"https://api.github.com/users/yumetodo/following{/other_user}","gists_url":"https://api.github.com/users/yumetodo/gists{/gist_id}","starred_url":"https://api.github.com/users/yumetodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yumetodo/subscriptions","organizations_url":"https://api.github.com/users/yumetodo/orgs","repos_url":"https://api.github.com/users/yumetodo/repos","events_url":"https://api.github.com/users/yumetodo/events{/privacy}","received_events_url":"https://api.github.com/users/yumetodo/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T14:17:28Z","updated_at":"2016-02-29T14:17:28Z","body":"まず注意することは、スレッド間では共有できないことですね、``std::mt19937``とかの乱数系クラスは。\r\n\r\n>並列演算が売りですので、Simulatorクラスのメンバ関数にあるRandInt()やRandReal()を他の関数に使用したいのですが\r\n\r\nもう少し具体的にお願いします"}}