[Tutor] Random time code

Simon Le-Talbot simon at taliuk.co.uk
Thu Aug 18 07:41:40 EDT 2016


Hi , I have recently purchased a Raspberry pi3 and I am wanting to turn a light on and then have it turn off at a random time between 3 and 8 seconds. 
Each time I turn the light on I want it to turn off at a different time ( just like the race start lights in formula 1). 
Code you possible help me with the python code required to do this?

Regards

Simon. 

Sent from my iPhone


Sent from my iPhone


More information about the Tutor mailing list