sandbox/misc/aqe/util.py

9 lines
221 B
Python
Raw Normal View History

2018-06-01 07:15:10 +00:00
import random
def generate_tail_number():
letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
tailno = 'N' + random.randint(10, 99)
tailno += random.choice(letters)
tailno += random.choice(letters)
return tailno