assign random pin if one isn't given