As an IAR C Compiler user I can't type my question in GCC forum and I am really not sure which is the right forum to ask it. So, if I am wrong please forgive my mistake.
I am searching for a very small size pseudo-random function in C to produce 1 digit numbers from 1 to 10 (NOT 0). I don't care if there are duplicates.
Also, if there is any other smaller (in code size) solution that produces 1 digit numbers from 1 to 8 it could fit to my needs.
Could you please help me?