{"action":"opened","issue":{"url":"https://api.github.com/repos/fpinscala/fpinscala/issues/469","repository_url":"https://api.github.com/repos/fpinscala/fpinscala","labels_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/469/comments","events_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/469/events","html_url":"https://github.com/fpinscala/fpinscala/issues/469","id":158562003,"number":469,"title":"Exercise 8.5","user":{"login":"Ryuu37","id":12125186,"avatar_url":"https://avatars.githubusercontent.com/u/12125186?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryuu37","html_url":"https://github.com/Ryuu37","followers_url":"https://api.github.com/users/Ryuu37/followers","following_url":"https://api.github.com/users/Ryuu37/following{/other_user}","gists_url":"https://api.github.com/users/Ryuu37/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryuu37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryuu37/subscriptions","organizations_url":"https://api.github.com/users/Ryuu37/orgs","repos_url":"https://api.github.com/users/Ryuu37/repos","events_url":"https://api.github.com/users/Ryuu37/events{/privacy}","received_events_url":"https://api.github.com/users/Ryuu37/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T16:21:41Z","updated_at":"2016-06-05T16:21:41Z","closed_at":null,"body":"One of the tasks is to implement `Gen.Boolean` and the answer given uses a method `RNG.boolean`\r\n\r\nHowever, at no point in the book or exercises does it appear that this is defined/implemented\r\n\r\nI wrote my own to use and figured that it may be useful if anyone encounters this and gets stuck:\r\n```Scala\r\ndef boolean: Rand[Boolean] = map(nonNegativeInt)(_ % 2 == 0)\r\n```"}}
{"actor":{"display_login":"Ryuu37"}}