Chuyển tới nội dung chính
Z

What is UUID?

A UUID (Universally Unique Identifier), also called a GUID, is a 128-bit identifier written as 32 hexadecimal digits in five groups (8-4-4-4-12). UUIDs are generated to be unique across space and time without a central authority, so different systems can create IDs that practically never collide.

A UUID looks like 550e8400-e29b-41d4-a716-446655440000. The most common is version 4, which is random; other versions derive from time, namespace or a hash. With 122 random bits, accidental collisions are astronomically unlikely.

UUIDs are used as database primary keys, distributed-system identifiers and idempotency keys — anywhere you need a unique ID without coordinating with a central counter.

UUID tools

Câu hỏi thường gặp

Tôi có thể dùng những dot-path nào?

Bất kỳ gì nằm dưới <code class="font-mono text-xs">faker.*</code> — ví dụ <code class="font-mono text-xs">person.firstName</code>, <code class="font-mono text-xs">company.name</code>, <code class="font-mono text-xs">finance.iban</code>, <code class="font-mono text-xs">date.past</code>. Xem tài liệu faker.js để có danh sách đầy đủ.

Tôi có thể truyền tham số không?

Có — đặt đối tượng tham số trong dấu ngoặc đơn. Ví dụ: <code class="font-mono text-xs">number.int({min:1,max:100})</code> hoặc <code class="font-mono text-xs">helpers.arrayElement(["a","b","c"])</code>.

Dữ liệu này lấy từ đâu?

Mọi thứ chạy trong trình duyệt của bạn — faker.js tạo dữ liệu cục bộ, không có lệnh gọi API nào. Schema và dữ liệu của bạn không bao giờ rời khỏi thiết bị.