I've written the following code in BASIC:
randInt(1,9->X
prgmNUM2STR
Str3->Str1
randInt(0,9->X
prgmNUM2STR
While Str3=Str1
randInt(0,9->X
prgmNUM2STR
End
Str3->Str2
randInt(0,9->X
prgmNUM2STR
While Str3=Str2 or Str3=Str1
randInt(0,9->X
prgmNUM2STR
End
Str1+Str2+Str3->Str1
I would like to convert this code into Axe. I know the randInt(s can be converted to rand^10->X, and I've replaced prgmNUM2STR with sub(NS).
If I'm using it correctly, I believe I can change Str3->Str1 into Copy(Str3,Str1,1) (I'm not entirely sure though.)
I am having the most trouble with Str1+Str2+Str3->Str1.
Also, If you know of a better way to generate a random three digit number where no two digits are the same, and store it as a string, that would be most appreciated.