{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/perseus/issues/18","labels_url":"https://api.github.com/repos/Khan/perseus/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Khan/perseus/issues/18/comments","events_url":"https://api.github.com/repos/Khan/perseus/issues/18/events","html_url":"https://github.com/Khan/perseus/issues/18","id":52735302,"number":18,"title":"Random problems","user":{"login":"bml13","id":2950904,"avatar_url":"https://avatars.githubusercontent.com/u/2950904?v=3","gravatar_id":"","url":"https://api.github.com/users/bml13","html_url":"https://github.com/bml13","followers_url":"https://api.github.com/users/bml13/followers","following_url":"https://api.github.com/users/bml13/following{/other_user}","gists_url":"https://api.github.com/users/bml13/gists{/gist_id}","starred_url":"https://api.github.com/users/bml13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bml13/subscriptions","organizations_url":"https://api.github.com/users/bml13/orgs","repos_url":"https://api.github.com/users/bml13/repos","events_url":"https://api.github.com/users/bml13/events{/privacy}","received_events_url":"https://api.github.com/users/bml13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-23T12:03:51Z","updated_at":"2015-02-05T00:49:30Z","closed_at":null,"body":"Is it possible to add the random problem like in Khan Exercises  such as the Addition where A and B are generated randomly and the question will be: A + B = ?, each time A and B will be replaced by random values.\r\nDo you plan to add them? or why there is no such widget?"},"comment":{"url":"https://api.github.com/repos/Khan/perseus/issues/comments/72973393","html_url":"https://github.com/Khan/perseus/issues/18#issuecomment-72973393","issue_url":"https://api.github.com/repos/Khan/perseus/issues/18","id":72973393,"user":{"login":"ariabuckles","id":1487889,"avatar_url":"https://avatars.githubusercontent.com/u/1487889?v=3","gravatar_id":"","url":"https://api.github.com/users/ariabuckles","html_url":"https://github.com/ariabuckles","followers_url":"https://api.github.com/users/ariabuckles/followers","following_url":"https://api.github.com/users/ariabuckles/following{/other_user}","gists_url":"https://api.github.com/users/ariabuckles/gists{/gist_id}","starred_url":"https://api.github.com/users/ariabuckles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariabuckles/subscriptions","organizations_url":"https://api.github.com/users/ariabuckles/orgs","repos_url":"https://api.github.com/users/ariabuckles/repos","events_url":"https://api.github.com/users/ariabuckles/events{/privacy}","received_events_url":"https://api.github.com/users/ariabuckles/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T00:49:30Z","updated_at":"2015-02-05T00:49:30Z","body":"Hi!\r\n\r\nWe've generally found that these types of autogenerated questions require a lot of edge cases that make them more trouble than they're worth building, and that it's easier to just write 20 or so questions for different parameters.\r\n\r\nFor example, let's say you wanted to write a factoring quadratic equations exercise. You'd write something like \"[A*C]x^2 + [A*D + B*C]x + [B*D]\", which factors into (Ax + B)(Cx + D). If you randomly generate A, B, C, and D, you might get A = 2, B = 5, C = 2, D = -5, which makes [A*D + B*C] 0. In that case, you probably shouldn't display the middle term at all, and show 4x^2 - 25 (instead of 4x^2 + 0x - 25). Also note there that the minus sign wasn't in the \"[A*C]x^2 + [A*D + B*C]x + [B*D]\" template, so there needs to be a way to work through that too.\r\n\r\nBecause of the complexity of writing such problems (even if there are such tools), in perseus we've generally focused on building nonrandom questions, and writing multiple such questions by hand."}}