Anonymous user
Number reversal game: Difference between revisions
m
→{{header|REXX}}: changed a comment.
m (→{{header|REXX}}: added/changed comments and whitespace, used a template for the OUTPUTs.) |
m (→{{header|REXX}}: changed a comment.) |
||
Line 2,856:
$= /* ◄─── decimal target to be generated.*/
do until length($)==9; _=random(1, 9) /*build a random unique numeric string.*/
if pos(_, $) \== 0 then iterate /*
$=$ || _ /*construct a string of unique digits. */
if $==ok then $= /*string can't be in order, start over.*/
|