[erlang-questions] How random is this

Christian S chsu79@REDACTED
Wed Oct 10 12:30:13 CEST 2007


> I needed a procedure that made a process crash with random intervals so I
> wrote someting like this:

> works fine until it actually crashes, then the random function does not
> generate a new value, it's stuck in the value that caused the crash. Could
> be a feature, could be somthing else.

I don't really understand what problem you are having. But the random
module stores the current seed in the process dictionary, so each new
process starts off from the same fixed seed unless you change it
yourself.


> Johan Montelius
> KTH  ICT/ECS
> There are 10 types of people in the world - those who understand binary
> and those who don't.

Are you taking a KTH course that teaches Erlang or are you studying it
on your own?



More information about the erlang-questions mailing list