Can anybody think of good ideas to make a script execute 10% of the time, another for 20% of the time and so on.. The total time for which the program executes is not known in advance.
Iam sorry I wanst very clear in the earlier message.Let me try again. Here is what I need to do. Say I have a couple of users who spend 10% of their time adding items to a shopping cart, 20% of their time browsing etc.. I want to model this case , using 10 users who do all the activities above.The 10 users may ibn the system for various times.But as long as the system is up , 10% of the total time is spent shopping, 20% browsing etc... How do I simulate this? I guess what makes it hard for me is that I dont know how long the system is up in advance.
are you sure? You want answer here, in this MD. Why do you want stimulate this? The way you deduce that user spend 10% time at particular area, you can find average time. Final try: Ask user when he enters in your commerce site, how much time he wants to be there. After that much time, kick him off
Have one user who does nothing but adds items to his shopping cart. Thats 10%. Have 2 users who do nothing but browse. Thats 20%. Etc. Then it does not matter how long the execution is.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad: