Jump to content

Recommended Posts

Posted

$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

Posted

$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 THIS

DIM $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_A

Else

$RAND_[$X] = $RAND_B

Endif

MsgBox(0,"LETTER OR NUMBER", $RAND_[$X] )

NEXT

;$CRAP = $RAND_[1] & $RAND_[2] & .......BLA... BLA

HOPE IT HELPS

CANT TEST "NADA"... IN MEXICO

8)

NEWHeader1.png

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
  • Recently Browsing   0 members

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