|
|
Invisible wrote:
> Well, people claim that Lisp is an [impure] functional language too, and
> AFAIK Erlang is about as pure as Lisp is.
It's functional in the sense that you only assign once to a variable.
It's not functional in the sense that calling "read" on the same file
twice (in any language) can give you different results. Erlang just has
lots more of that latter kind of non-functionalism.
But yeah, you have to pass the seed to the random number generator, and
it gives you back your random number and a new seed to remember for
later. :-)
How does Haskell handle things like the function for "the time right now"?
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|