Search Result

Collapse
2 results in 0.0039 seconds.
Keywords
Members
Tags
time()
  •  

  • Increment a number(upto 4 digit ) and reset counter on the next day

    Hello everyone How are you all ?

    I am developing a wordpress plugin and I need to generate a four(4) digit number starting from 0001 to 9999.
    And reset the counter after 24hr or next day then continue as it was.

    I am looking for a function which solve this problem.

    example output :

    date 27.1.2012 + (0001-9999)

    Thanks in advance.
    See more | Go to post

  • AxeMnaS
    started a topic How does srand() use time to generate random numbers?
    in C

    How does srand() use time to generate random numbers?

    Try to explain as simply as possible...I've only covered header files: <iostream>, <iomanip>, <cmath>, and just now being introduced to <ctime> and <cstdlib> (I think that's the header file name).
    See more | Go to post
Working...