added findOpenCV scripts and fixed random number generation methods