At 11:41 PM +0200 8/13/02, Jerome Quelin wrote: >Well, I don't know if this is interesting, but here's a patch that implement: > op rand(out NUM) > op rand(out NUM, in INT) > >and does what you can guess. There's also a test file (I don't know wether >the tests should go in an existant test file). > >But, there is a tiny, little problem: I don't call srand(), and thus get >always the same value. I don't know *where* to call srand(). I don't even >know *if* I should call srand(). >Anyway, here's the patch and be kind since this is my first patch ;) (pod >cleaning doesn't count).
Theoretically you'd call it in the op setup function of the opcode library. >Please, could you tell me if the parrot team (that is, all of you guys) wants >to add new ops, or if we should wait for a new source organization / >extension API / etc. We need to get it defined. It's high on the list o' stuff to do. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk