Anagram

Author(s): Jody Koenig
Publication: LISTing Newsletter
Date: June - July 1991
Pages: 3

This program will make GOOD and BAD Anagrams of words you Input. It will fit in 1K.

Created by: Jody Koenig; Decorah, Iowa.

 1 REM ANAGRAM
10 INPUT A$
15 DIM D(LEN A$)
17 LET A=1
20 FOR C=1 TO LEN A$
30 LET X=INT (1+LEN A$*RND)
40 FOR B=1 TO LEN A$
50 IF X=D(B) THEN GOTO 30
60 NEXT B
70 PRINT A$(X)
72 LET D(A)=X
75 LET A=A+1
80 NEXT C
85 PRINT
90 GOTO 15

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.