Hi guys,
I am having headache over this problem. I needed to randomise the position of different pairs of characters. The 2D array I chose to use is 6 x 6 which is 36 in total. This means that i only needed to use 18 pairs of characters. I chose to use character 'a' to 'r', between interger value of 97 and 114, which the range of them is 18. But when I print the result characters such as 'z' or 'y' which should'nt be in the range came out as well. By the way, when I print the result nomatter what type of variable I set it as it still came out as characters. I doesn't understand quite much about these ASCII codes.
Any help or explaination is appreciated.
Thanks