EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Random Numbers (https://www.eqemulator.org/forums/showthread.php?t=16584)

Xothin 10-23-2004 06:23 PM

Random Numbers
 
Is there a way to randomly generate a number via a function? I haven't pored over the code in plugin.pl yet, but maybe I should.

If anyone knows, and I don't find the answer beforehand, I'd appreciate it. ^.^

Cisyouc 10-24-2004 02:52 AM

http://www.eqemulator.net/forums/viewtopic.php?p=95744

See Charmy's reply.

Xothin 10-24-2004 04:10 AM

Great! I wasn't sure if the rand() function was available to me. ^.^

Knowing that, I can do quite a bit.

fathernitwit 10-24-2004 10:14 AM

basically any perl primitive function is avaliable... as long as you dont need a use; for it, it should work, and I would even bet that you could 'use' packages too.

Xothin 10-24-2004 10:25 AM

I'm not much of a Perl scripter, most of my experience is in C++ and C#. So learning Perl functions is something new to me. ^.^


All times are GMT -4. The time now is 07:52 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.