Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Programming ➜ General ➜ Number Generator

Number Generator

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Forty   (11 posts)  Bio
Date Sun 23 Apr 2006 12:21 PM (UTC)
Message
Hey, I was hoping to get some help with a project I'm about to try. My goal is to create a program that will generate all possibilities of a 5 digit number for a mud I play. I know enough C++ or Java to complete this part of the project, but I don't know anything about scripting or creating plugins to send these combinations to my MUSHclient app. or to send text back to stop the prog.

For example,

I generate numbers and send them to the world, until the text "Access Granted" triggers the end of the program, and saves the combination to a file. Any help would be greatly appreciated.
Thanks You
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Sun 23 Apr 2006 07:05 PM (UTC)
Message
You can write this fairly easily in Lua, Perlscript or Javascript using techniques very similar to the C++. You don't really need to do it in C++ and send it to the world; that's extra effort for no real reason. But keep in mind that for a 5-digit number, there are 10^5 = 100,000 possibilities. Your MUD might not appreciate being spammed like that... :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,132 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.