Number Generator

Posted by Forty on Sun 23 Apr 2006 12:21 PM — 2 posts, 11,415 views.

#0
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
USA #1
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... :)