.NET / C#:
var guid = Guid.NewGuid();

T-SQL:
SELECT NEWID();

Windows PowerShell:
[guid]::NewGuid()

API GET:
http://www.NewGUID.org/guid/new