updated to actual version
removed srand(10) call