Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2004, 06:23 PM
Xothin
Sarnak
 
Join Date: Oct 2004
Posts: 68
Default 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. ^.^
Reply With Quote
  #2  
Old 10-24-2004, 02:52 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

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

See Charmy's reply.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #3  
Old 10-24-2004, 04:10 AM
Xothin
Sarnak
 
Join Date: Oct 2004
Posts: 68
Default

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

Knowing that, I can do quite a bit.
Reply With Quote
  #4  
Old 10-24-2004, 10:14 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

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.
Reply With Quote
  #5  
Old 10-24-2004, 10:25 AM
Xothin
Sarnak
 
Join Date: Oct 2004
Posts: 68
Default

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. ^.^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:50 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3