Implement rand(), srand()