First time here? Check out the FAQ!
answered 2016-11-15 16:58:22 +0100
Your function randomGen returns None (there is no return statement).
randomGen
None