Random Number Generator with array

Hi I do not understand the question stated below. Does anyone know what does it mean so I can kick start with it?

The program has two array of character. One of them has size 26 and is initialized with the alphabet a to z. A random number generator generates two numbers and these two numbers are used to index into this array of alphabets. The second array is used to hold the indexed alphabets. For example, the first row is the value held in the second array and the second row are the two generated numbers.

b g c z k e <- letter index by generate number
n1=1 n2=6 n1=2 n2=25 n1=10 … … … … n2=4 <- generated n1 & n2


Please see illustration below for clarification on the above question.

Array 1
Element a b c ……… x y z
Index 0 1 2 ……… 23 24 25

Array2
Element ………
Index 0 1 2 ……… 23 24 25

Final state after program execution
Array1
Element a b c ……… x y z
Index 0 1 2 ……… 23 24 25

Array2*
Element c e m ……… z f g
Index 0 1 2 ……… 23 24 25
Random No generated 2 4 12 ……… 25 5 6
* Actual char element allocated to each index location will depend on corresponding random number generated. Program completes execution after filling all 26 locations in Array2.

Array 1 holds two dimensional array with Element of a to z and Index of 0 to 25.
Array 2 is display out the ray with Element of random alphabets, Index of 0 to 25 and Random No generated which display the number in index holds the alphabets
in Array 1. How would I kick start with this program? I am confused.
Topic archived. No new replies allowed.