Jump to content

Need really fast and easy help here!


Recommended Posts

ok I managed to do this. now i'm having another problem that I can't fix. when I use a switch to make a random letter, it sends numbers. example:

case returns letter c

it sends .21744761290029

----

tyvm for your time, i needed to use the flag on random to get integer numbers. see you

Edited by faithless
Link to comment
Share on other sites

Link to comment
Share on other sites

What do you need it to do?

A random upper case letter can be generated like this

Local $aLetters = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ","")
   Local $RandomLetter = $aLetters[Random(1,26,1)]
   Msgbox(0,"Random Letter", $RandomLetter)

Or a Random upper case string of 6 characters

Local $aLetters = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ","")
Local $RandomString = ""

For $i = 1 to 6
    $RandomString &= $aLetters[Random(1,26,1)]
Next

Msgbox(0,"Random String",$RandomString)
Edited by ChrisL
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...