randRange( 0, 32 )

Express the binary number to6BitString(Dec) in decimal (base 10) notation.

32s16s8s4s2s1s<< Remember the binary place values, e.g 32s place, 16s place.

Sum the values of those places that contain a '1' digit and ignore those that have a '0' digit.

The value in a particular position that contains a '1', is 1 times the place value. For example, 1 times 4 or 1 times 8.

The answer is Dec