Factor out rand-note.