au3scr Posted April 4, 2008 Posted April 4, 2008 (edited) How to use random with chr? I want use random characters I found Asc("A"), Asc("Z"), but it returns the number,how i can make ranom with text symbols a..z for chr it returns 0 Edited April 4, 2008 by au3scr
monoceres Posted April 4, 2008 Posted April 4, 2008 That would be Chr(Random(65,90,1)) Broken link? PM me and I'll send you the file!
spudw2k Posted April 4, 2008 Posted April 4, 2008 (edited) Use Chr() to convert a character code into a character. 65-90 is A-Z and 97-122 is a-z. $rnd = Random(65,90,1) msgbox(0,Chr($rnd),"") Edited April 4, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
weaponx Posted April 4, 2008 Posted April 4, 2008 @au3scr - Haven't you been asking questions long enough to answer this yourself? $rnd = "" For $X = 0 to 8 $rnd &= Chr(Random(65,90,1)) Next msgbox(0,"",$rnd)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now