EQEmulator Home
>
EQEmulator Forums
>
Quests
>
Quests::Q&A
Random Int question
User Name
Remember Me?
Password
Home
Forums
Register
Members List
Search
Today's Posts
Mark Forums Read
Quests::Q&A
This is the quest support section
Thread Tools
Display Modes
#
1
01-10-2012, 07:32 PM
lerxst2112
Demi-God
Join Date: Aug 2010
Posts: 1,742
Perl has a built-in random number generator.
http://perlmeme.org/howtos/perlfunc/rand_function.html
lerxst2112
View Public Profile
Send a private message to lerxst2112
Find all posts by lerxst2112
#
2
01-10-2012, 10:10 PM
Durge
Sarnak
Join Date: Jan 2010
Location: USA
Posts: 51
Thank you, this was very helpful =).
__________________
Durge
View Public Profile
Send a private message to Durge
Visit Durge's homepage!
Find all posts by Durge
#
3
01-11-2012, 06:34 AM
trevius
Developer
Join Date: Aug 2006
Location: USA
Posts: 5,946
If you have the right plugin, you can also do:
my $randomnum = plugin::RandomRange(5, 15);
It makes it a bit easier to get a random number within a range that doesn't start at 0.
__________________
Trevazar/Trevius
Owner of:
Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions)
-
Read It!
trevius
View Public Profile
Send a private message to trevius
Visit trevius's homepage!
Find all posts by trevius
#
4
01-14-2012, 12:46 AM
Durge
Sarnak
Join Date: Jan 2010
Location: USA
Posts: 51
Ok, thanks, thats also nice to know
__________________
Durge
View Public Profile
Send a private message to Durge
Visit Durge's homepage!
Find all posts by Durge
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
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 Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General
General::General Discussion
General::Server Discussion
General::News
General::News::Polls
Support
Support::General Support
Idiot Posters
Spell Support
Support::Windows Servers
Support::Linux Servers
Support::Packetcollector
Support::MiniLogin
Quests
Quests::Q&A
Quests::Custom
Quests::Completed
Quests::Submissions
Quests::Plugins & Mods
Quests::need work
Quests::LUA
Development
Development::Development
Development::Bots
Development: Custom Code
Development::Server Code Submissions
Development::Feature Requests
Development::Bugs
Development::Bug Reports
Development::Database/World Building
Development::Tools
Development::GeorgeS's Tools
EQEmu Operations Center
KayotRO
Old Eq
OpenZone
OpenZone:: Q&A
Simple Client
OpenZone::Tutorials
OpenZone::Bug Reporting
Misc
Misc::Off Topic
Misc::Screenshots
Archives
Archive::Support
Archive::General Support
Archive::Windows Servers
Archive::Linux Servers
Archive::Tutorials/Howto's
Tutorials--Outdated Use the Wiki
Tutorial ALL NEW PEOPLE READ THIS
Tutorials::Discussion
Tutorials::Requests
Tutorials::Submissions
Tutorials::Needs work
Archive::Packetcollector
Archive::Development
Archive::Development
Archive::Bugs
Archive::Tools
Archive::Quests
Archive::Database/World Building
EQ2 Development
Archive::Misc
Archive::Off Topic
Archive::Screenshots
OpenEQ
OpenEQ::General Discussion
OpenEQ::Support
OpenEQ::Development
OpenEQ::Bug reporting
OpenEQ::Plugins
All times are GMT -4. The time now is
12:03 AM
.
-- Default Style
---- EQEmulator
EQEmulator
-
Archive
-
Top
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 - 2025, Jelsoft Enterprises Ltd.
Template by
Bluepearl Design
and
vBulletin Templates
- Ver3.3