Trường · Int
Trường · Int · number.int. Phương thức tạo · Ví dụ
number.int
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Returns a single random integer between zero and the given max value or the given range. The bounds are inclusive.
number.int(options?: number | { min?: number; max?: number; multipleOf?: number; distributor?: Distributor; })- options
- Maximum value or options object.
- options.min
- Lower bound for generated number. Defaults to 0.
- options.max
- Upper bound for generated number. Defaults to Number.MAX_SAFE_INTEGER.
- options.multipleOf
- Generated number will be a multiple of the given integer. Defaults to 1.
- options.distributor
- A function to determine the distribution of generated values. Defaults to uniformDistributor().
Ví dụ
6017037544686572Dùng dữ liệu tổng hợp trong môi trường kiểm thử.