Skip to content

Instantly share code, notes, and snippets.

@ferd
Created June 24, 2015 01:11
Show Gist options
  • Select an option

  • Save ferd/c8a3303a04e4898be7ab to your computer and use it in GitHub Desktop.

Select an option

Save ferd/c8a3303a04e4898be7ab to your computer and use it in GitHub Desktop.
1> [spawn(fun() -> io:format("~p~n", [random:uniform()]) end) || _ <- lists:seq(1,10)].
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
0.4435846174457203
[<0.41.0>,<0.42.0>,<0.43.0>,<0.44.0>,<0.45.0>,<0.46.0>,
<0.47.0>,<0.48.0>,<0.49.0>,<0.50.0>]
2> [spawn(fun() -> io:format("~p~n", [rand:uniform()]) end) || _ <- lists:seq(1,10)].
[<0.52.0>,<0.53.0>,<0.54.0>,<0.55.0>,<0.56.0>,<0.57.0>,
<0.58.0>,<0.59.0>,<0.60.0>,<0.61.0>]
0.4866207225497589
<shell freezes>
@sverker
Copy link
Copy Markdown

sverker commented Jun 24, 2015

Fixed in 46197916fd948debb included in master soon to be released as OTP-18.0.

@ferd
Copy link
Copy Markdown
Author

ferd commented Jun 24, 2015

Cool, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment