Trường · Flight Number

Trường · Flight Number · airline.flightNumber. Phương thức tạo · Ví dụ

airline.flightNumber

Cài đặt trình tạo

Tạo dữ liệu để xem kết quả ở đây.

Tham số & Ví dụ

Returns a random flight number. Flight numbers are always 1 to 4 digits long. Sometimes they are used without leading zeros (e.g.: American Airlines flight 425) and sometimes with leading zeros, often with the airline code prepended (e.g.: AA0425).

airline.flightNumber(options?: { length?, addLeadingZeros? })
options
The options to use.
options.length
The number or range of digits to generate. Defaults to { min: 1, max: 4 }.
options.addLeadingZeros
Whether to pad the flight number up to 4 digits with leading zeros. Defaults to false.

Ví dụ

"260"

Dùng dữ liệu tổng hợp trong môi trường kiểm thử.

Trình tạo liên quan

Khám phá kịch bản