Common elements in 2 different arrays
<p>I'm making a basic coding algorithm that takes an input, codes it (using random numbers), then decrypts. The arrays are filled with type "char". It encrypts each letter individually. How can I check that when it is coding a letter, that the same letter hasn't been encoded as something else.</p>

<p>Example</p>

<p>encoding </p>

<p>abc</p>

<p>a is given random number 2
b is given random number 5
how can i prevent c being given 2 or 5</p>

<p>Thanks alot!</p>
