Поле · Int
Поле · Int · number.int. Метод генерации · Пример
number.int
Настройки генератора
Создайте данные для просмотра результатов.
Параметры & Пример
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().
Пример
6017037544686572Используйте синтетические данные в тестовой среде.