Small fix in randomInt: return value data type

Changed from NSInteger to NSUInteger and fixed a cast warning.

Signed-off-by: Miguel M. Almeida <miguelcma@gmail.com>