{"action":"created","issue":{"url":"https://api.github.com/repos/Haacked/Scientist.net/issues/12","repository_url":"https://api.github.com/repos/Haacked/Scientist.net","labels_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/12/comments","events_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/12/events","html_url":"https://github.com/Haacked/Scientist.net/issues/12","id":131743659,"number":12,"title":"Use PcgRandom instead of System.Random","user":{"login":"bgrainger","id":188129,"avatar_url":"https://avatars.githubusercontent.com/u/188129?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrainger","html_url":"https://github.com/bgrainger","followers_url":"https://api.github.com/users/bgrainger/followers","following_url":"https://api.github.com/users/bgrainger/following{/other_user}","gists_url":"https://api.github.com/users/bgrainger/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrainger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrainger/subscriptions","organizations_url":"https://api.github.com/users/bgrainger/orgs","repos_url":"https://api.github.com/users/bgrainger/repos","events_url":"https://api.github.com/users/bgrainger/events{/privacy}","received_events_url":"https://api.github.com/users/bgrainger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T20:09:41Z","updated_at":"2016-02-10T01:57:43Z","closed_at":null,"body":"[Line 13 of Scientist.cs](https://github.com/Haacked/Scientist.net/blob/dc8bbf5c1c7efad694335fe3bc6f00d0d5b8c925/src/Scientist/Scientist.cs#L13) says:\r\n\r\n```\r\n// TODO: Evaluate the distribution of Random and whether it's good enough.\r\n```\r\n\r\nPcgRandom ([NuGet](https://www.nuget.org/packages/PcgRandom), [GitHub](https://github.com/bgrainger/PcgRandom)) is a .NET port of the [PCG](http://www.pcg-random.org/) RNG algorithm. It's a drop-in replacement for `System.Random` that provides a high-quality PRNG.\r\n\r\nIf you're interested, I can submit a PR; just let me know. (I'd also fix the thread-safety bug in `Experiment.cs`; a `static` Random instance could be accessed simultaneously by multiple threads, but [it's not thread-safe](https://msdn.microsoft.com/en-us/library/system.random.aspx#ThreadSafety), and doing so can corrupt its internal state.)"},"comment":{"url":"https://api.github.com/repos/Haacked/Scientist.net/issues/comments/182166097","html_url":"https://github.com/Haacked/Scientist.net/issues/12#issuecomment-182166097","issue_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/12","id":182166097,"user":{"login":"darcythomas","id":2132822,"avatar_url":"https://avatars.githubusercontent.com/u/2132822?v=3","gravatar_id":"","url":"https://api.github.com/users/darcythomas","html_url":"https://github.com/darcythomas","followers_url":"https://api.github.com/users/darcythomas/followers","following_url":"https://api.github.com/users/darcythomas/following{/other_user}","gists_url":"https://api.github.com/users/darcythomas/gists{/gist_id}","starred_url":"https://api.github.com/users/darcythomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darcythomas/subscriptions","organizations_url":"https://api.github.com/users/darcythomas/orgs","repos_url":"https://api.github.com/users/darcythomas/repos","events_url":"https://api.github.com/users/darcythomas/events{/privacy}","received_events_url":"https://api.github.com/users/darcythomas/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T01:57:43Z","updated_at":"2016-02-10T01:57:43Z","body":"My 10 cents:\r\nThe random object should be inject-able. That way we can write deterministic tests etc.\r\n\r\n"}}