Removed rand and srand fix #8