Often I need to use a random string to query on a database or to reference a record. This code allows you to create a random string that is very very random.
<%
Dim random_id
Set random_id = CreateObject(“Scriptlet.TypeLib”)
random_id = mid(random_id.GUID,2,36)
%>
And to use it you can just do this:
<%=random_id%>
These are ideas of what it will generate:
C6AE4FE9-8393-47D0-A75A-79167C3E74C1
8B746005-D56F-4F52-8106-C5CBF4CAC0C4
A91CA193-627F-4CAC-B958-CDD9A54C0C15
Hope that helps.
