I know what it is, I was wondering what it was attempting to achieve, but you made the point more eloquently in the second part of your post.
I know what it is, I was wondering what it was attempting to achieve, but you made the point more eloquently in the second part of your post.
So what would be better to do? Throw cast? Is it better to use c++ style cast instead of c? If so, why?
>So what would be better to do?
In this case it would be better not to use the time function to seed your generator at all. For example: http://eternallyconfuzzled.com/articles/rand.html.
>Is it better to use c++ style cast instead of c?
There have been heated arguments in favor of both. So it's really up to you.
My best code is written with the delete key.
>> There have been heated arguments in favor of both. So it's really up to you.
I don't remember the arguments in favor of C style casts. I would use the C++ ones.