Poll

Big Daddy

Bouncer
Rosie

Author Topic: Simple Script - getRandomLetter();  (Read 2393 times)

You sure do.

Quote
Bolt691 says:
Its one line
Quote
Bolt691 says:
Its one line
Quote
Bolt691 says:
But you waisted so many lines...
Quote
Bolt691 says:
That can be done in one..
Quote
Bolt691 says:
but... 1 line...
Quote
Bolt691 says:
But... 1..
Quote
Bolt691 says:
1...
Quote
Bolt691 says:
1 line..
Quote
Bolt691 says:
1 line..

As you can see in Traders script, he needed many lines to do it my way. And I did mine in honor of him.

Well you keep thinking I give a stuff about your scripts. Just don't try to message me, ever again.

Edit: Just one more thing. Stop involving youself in peoples stuff to try and make friends. Its obviously not working out for you.
« Last Edit: October 13, 2008, 06:25:26 AM by TheBoltster »

If you have a response to me talking about the script:
...I give a stuff about your scripts.
Just don't give comment if you don't "give a stuff"

As you can see in Traders script, he needed many lines to do it my way. And I did mine in honor of him.
..WHY? That's pointless. Why in the world would you turn a 1 line script into a page?

Everyone says it's the same thing with many lines.

Read mine:
Preset list of LETTERS
Dynamic Start End Points
Checks for existence of vars (You could do getRandomLetter(); with rkynicks and get a getSubStr error in console. error(); in v10 makes 4 lines in console :/)

Mine keeps to getRandomLetter. No one seems to understand that. I'd rather be able to do a script without having another 28 characters typed into it each time.

  function getRandomLetter()
{
return getsubstr("abcdefghijklmnopqrstuvwxyz",getrandom(0,strlen("abcdefghijklmnopqrstuvwxyz")-1),1);
}
Whoops you missed a script there

Ok, here:

With rkynick's version, it's no-longer getRandomLetter, as if then gets anything you input and you must manually input the whole thing you want random from.

With Boltster's version, there is no min-max.

Quote from: MSN with Falcondude
MegaScience says:
   I never told them to use this at all
MegaScience says:
   This does not have a use
MegaScience says:
   I thought my topic would have some noob go "YAY FIRST POST" then it'd die

I didn't care for this and you guys seem to care so much to tell me my codes inferior. I am only trying to make my point.

Everyone says it's the same thing with many lines.

Read mine:
Preset list of LETTERS
Dynamic Start End Points
Checks for existence of vars (You could do getRandomLetter(); with rkynicks and get a getSubStr error in console. error(); in v10 makes 4 lines in console :/)

Mine keeps to getRandomLetter. No one seems to understand that. I'd rather be able to do a script without having another 28 characters typed into it each time.
Pro-tip: $alphabet="abcdefghijklmnopqrstuvwxyz"; getrandomletter($alphabet);
another Pro-tip: getrandomletter(getsubstr($alphabet,3,12-3));(second number is the number you want to go to, minus the first number)
If you wanted simply getrandomletter() to work, you add ONE LINE. You do all this stuff WITH INSANE NUMBERS OF LINES.
if(%letters $= ""){%letters="abcdefghijklmnopqrstuvwxyz";}
Problem solved.

Advantages of mine:

Shorter and easier to edit(see: not overcomplicated)
Everything MegaScience listed off stupidly.
You can put in any text string to be searched for a random letter.
You can also use it to get random non-letters and such.

Pro-tip: $alphabet="abcdefghijklmnopqrstuvwxyz"; getrandomletter($alphabet); Setting variables? Shouldn't need to for a script line this.
another Pro-tip: getrandomletter(getsubstr($alphabet,3,12-3));(second number is the number you want to go to, minus the first number) Doesn't that seem a bit complicated just to get a random character?
If you wanted simply getrandomletter() to work, you add ONE LINE. You do all this stuff WITH INSANE NUMBERS OF LINES. Which I bet you have only done a quick read through before determining this conclusion.
if(%letters $= ""){%letters="abcdefghijklmnopqrstuvwxyz";}
Problem solved. Ya, Adding lines, mine doesn't need that.

Advantages of mine:

Shorter and easier to edit(see: not overcomplicated) Shorter limits functionality. Easier to Edit? That just adds more lines you said made it stuff.
Everything MegaScience listed off stupidly. getRandom in Letters. Functionality the same as getRandom but in Letters.
You can put in any text string to be searched for a random letter. As I stated, the whole point of mine is letters.
You can also use it to get random non-letters and such. Same as above, getRandomLetters.