Generate a UUID in Ruby Ruby Generate a v4 UUID with the SecureRandom stdlib. require 'securerandom' puts SecureRandom.uuid Copy code Download Print Share Utilities IdentifiersUuid chris