Created
November 6, 2017 19:13
-
-
Save elbrujohalcon/77f48c54edb664fb62365f7abe01aeba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(x). | |
| -export([bad/1]). | |
| bad(A) -> | |
| B = case rand:uniform() of | |
| C when C < 0.5 -> C; | |
| D when D >= 0.5 -> 1 - D | |
| end, | |
| A + B - C. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment