[Coding] random function , returned values?

hello,

when i do:

uint8_t numberRandomSteps = GetRngValue();

i will get values between 0 and 255 ?

cheers!

Comments

  • yes.
    GetRngValue() returns a 32-bit value that will be casted to uint8_t.
    you are just discarding the upper 24 bit.

  • oki, perfect , i continue then to program :-)

Sign In or Register to comment.