renamed examples, added genint for random var index ranom generation (convenience), moved random array to separate file