In the given code, each letter is assigned a unique number. By comparing the codes for 'RANGE' and 'RANDOM', we can deduce that the code for each letter is determined by its position in the word. For example, 'R' is coded as 1, 'A' as 2, 'N' as 3, 'G' as 4, and 'E' as 5. Applying the same logic to the word 'MANGO', we can determine that the code for 'M' is 8, 'A' is 2, 'N' is 3, 'G' is 4, and 'O' is 7. Therefore, the code for 'MANGO' would be 82347.