*! version 1.2 june2013

Title

randomid -- Creates a unique, random, alphanumeric identifier of chosen length

Syntax

randomid
newvar
, [length(integer)]

Main
length(integer) desired character length. (Default is 8.)

Description

randomid creates a new variable that uniquely identifies every observation in the dataset with random alphanumeric characters.

Remarks

It's recommended to set seed before this command for replicability.

Example

. randomid myid, length(10)