Fixes to the rand binary example