Rand guid

Changed all occurrences of "rand" to "guid" as it is more appropriate.