my_tempo's blog

By my_tempo, 3 years ago, In English

I was trying to use the FastOlympicCoding package of Sublime. The only problem is that I dont know how to continuously change seed of the random function on each test case.
And srand(time(NULL)) is taking too much time (1 sec) to change the seed value so it's not good either.
I saw on other blogs that we can do this by changing the arguments for of int main but I have no idea how to do this kind of stuff in this package.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it +2 Vote: I do not like it

How about srand(chrono::steady_clock::now().time_since_epoch().count());?