This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
2015-02-08 01:55:45 +00:00
|
|
|
"""
|
|
|
|
Module de simaultaion d'une camera
|
|
|
|
"""
|
|
|
|
|
2015-01-12 15:06:44 +00:00
|
|
|
import random
|
|
|
|
import string
|
|
|
|
from src.m.Voiture import Voiture
|
|
|
|
|
2015-02-08 01:55:45 +00:00
|
|
|
## Une Camera
|
2014-12-05 14:54:04 +00:00
|
|
|
class Camera:
|
2015-02-08 01:55:45 +00:00
|
|
|
## Retourne une voiture genere aleatoirement de longueur entre 150 et 300 cm et de hauteur entre 100 et 200 cm
|
2015-02-05 00:21:43 +00:00
|
|
|
@staticmethod
|
|
|
|
def donnerVoiture():
|
2015-02-04 13:20:39 +00:00
|
|
|
v = Voiture(None, None, random.randint(150, 300), random.randint(100, 200), ''.join(
|
2015-01-12 15:49:41 +00:00
|
|
|
random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in
|
2015-02-05 00:21:43 +00:00
|
|
|
range(random.randint(5, 10))))
|
2014-12-23 18:05:26 +00:00
|
|
|
return v
|