shism2 Posted August 6, 2005 Share Posted August 6, 2005 $crap = String("BK" & $rand1 & $rand2 & "-" & $rand3 & $rand4 & $rand5 & $rand6 & $rand7 & $rand8 & "-" & "X" & $rand9 & $rand10 & $rand11 & $rand12 & "2" ) $rand1 = Chr(Random(Asc("A"), Asc("Z"), 1)) I want to have numbers as well in the randomization... How can I implement that Link to comment Share on other sites More sharing options...
GaryFrost Posted August 6, 2005 Share Posted August 6, 2005 create your function, check the params of the function, see if StringIsInt or StringIsFloat, if so then random on those numbers, else random on the asc of the params. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted August 6, 2005 Share Posted August 6, 2005 $crap = String("BK" & $rand1 & $rand2 & "-" & $rand3 & $rand4 & $rand5 & $rand6 & $rand7 & $rand8 & "-" & "X" & $rand9 & $rand10 & $rand11 & $rand12 & "2" )$rand1 = Chr(Random(Asc("A"), Asc("Z"), 1))I want to have numbers as well in the randomization... How can I implement that<{POST_SNAPBACK}>HOWS ABOUT THISDIM $RAND_[13]FOR $X = 1 TO 12$rand_A = Chr(Random(Asc("A"), Asc("Z"), 1))$RAND_B = Random(0, 9, 1)If Random() < 0.5 Then $RAND_[$X] = $RAND_AElse $RAND_[$X] = $RAND_BEndifMsgBox(0,"LETTER OR NUMBER", $RAND_[$X] )NEXT;$CRAP = $RAND_[1] & $RAND_[2] & .......BLA... BLAHOPE IT HELPSCANT TEST "NADA"... IN MEXICO8) Link to comment Share on other sites More sharing options...
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