Hi,
I want to write a program to simulate a cafetaria in which a customer enters the cafetaria every 10 ~ 50 seconds. So I wanted a function to be called every 10~50 seconds depending on what time is chosen by the random number generator.
I want to know which header file has the function whcih will help me repeat a function call every x seconds. I know there is one in the GLUT library but I want to use a non Graphics header file. So please let me know the header and function which will help me do my implementation.
another question is as follows, I have 2 probabilities i.e. 40% of people choose sandwish counter and 60% choose main. how do I select randomly if a customer should choose sandwich or main counter. Lemme know if anyone got any ideas.
Thank You in advance.
Regards
Digital Don