Anthony Chaumas-Pellet <[EMAIL PROTECTED]> writes: > I'm not sure if the pseudo-random generator is supposed to be so > predictable.
It is indeed supposed to be predictable. That way, you can repeat a sequence of random numbers when debugging. Don't use the return value of (random t), that is not how you do it usually. It is used to generate a new seed. Use (random N) to control the range. Daniel Brockman <[EMAIL PROTECTED]> writes: > Probably we shold call `(random t)' only once. I'm not sure > where, though. Maybe we should just put it at the top level? Yes, the top level would work. It might be better to call it when random playback mode is set up. If you want to call it only once, though I don't think it's strictly necessary, maybe use this: (defun bongo-initialize-random () (random t) (fset 'bongo-initialize-random 'ignore)) If that is too weird, use a variable `bongo-random-initialized'. _______________________________________________ bongo-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/bongo-devel
