Brew's real problem is that no matter how he tries to make it, its gonna generate some repeats. He wants it to have no repeats.
also, just make sure that its int (or Fix)(rnd*11)+4 for the strlen
Quote from: [RealityRipple] on March 22, 2007, 06:01 PMoh sorry i forgot that the rounding up is only with CInt
like i said, i didn't check it at all. and Int(Rnd * 62) wouldn't allow 62.Code SelectDim randval As Integer
run that. it will never end.
Randomize
Do Until randval = 62
randval = Int(Rnd * 62)
Debug.Print randval
Loop
MsgBox "Done"
also, just make sure that its int (or Fix)(rnd*11)+4 for the strlen