hi i'm trying to make a function that delivers about 50 outputs at a time of something like this:

I start out with a letter value of: g-d-f-j-h-d-a-d

and each "column" (denoted by '-') has it's own letter range of "a-j" and then it overflow to the next column. I'll try to explain my best with this:

I would want the script to echo out about 50 new values from that start value automatically so they would read like this, and so on...:

example 1 (easier explanation)

a-a-a
a-a-b
a-a-c
a-a-d
a-a-e
a-a-f
a-a-g
a-a-h
a-a-i
a-a-j
a-b-a
a-b-b
a-b-c
a-b-d
a-b-e
a-b-f
a-b-g
a-b-h
a-b-i
a-b-j
a-c-a
a-c-b
a-c-c
a-c-d
a-c-e

example 2

1) g-d-f-j-h-d-a-d

2) g-d-f-j-h-d-a-e

3) g-d-f-j-h-d-a-f

4) g-d-f-j-h-d-a-g

5) g-d-f-j-h-d-a-h

6) g-d-f-j-h-d-a-i

7) g-d-f-j-h-d-a-j

8) g-d-f-j-h-d-b-a

9) g-d-f-j-h-d-b-b

10) g-d-f-j-h-d-b-c

11) g-d-f-j-h-d-b-d

If anyone understands can you please help me?

    If anyone understands can you please help me?

    I have written a script that solves your problem, but I want to see some effort on your part before I post my solution.

    Basically, this is how my script works:

    Get the input as a string of letters (e.g., 'gdfjhdad')
    Calculate the the number of possible values, n, for each letter (10 for a to j)
    Process the string into an array, mapping each letter to a number from 0 to n
    Loop from i = 0 to i = (number of iterations needed - 1)
        Convert the array to a string with each character separated by '-'
        Print the string
        Loop from the last array element to the first
            Increment the current array element
            If current array element value is equal to number of possible values
                Set current array element to 0
            Else
                Break from the loop
      Write a Reply...