| Reply | « Previous Thread | Next Thread » |
|
i want to generate a random time so i would send a msg....any idea?
|
| jselvakumar26071988 |
| View Public Profile |
| Find all posts by jselvakumar26071988 |
|
java.util.Random generates random numbers.
|
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
but how do i make it generate time(random)?
|
| jselvakumar26071988 |
| View Public Profile |
| Find all posts by jselvakumar26071988 |
|
What do you mean by "time"? Time is just a number...
Do you mean: * a duration? * a time-of-day? * a date-and-time? What are the limits within which you want the "time"? |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
As you are specifically talking about the generation of the random time,there is nothing to dos so,As grahamhughes has described that time is just the number then just create the random number,so generate the random number and you can fulfill the need, You can do one more thing is that you can take the system time. Then generate the random number and then add/minus that number with time.. please give more information about your requirement, Thanks R a j - The K e r n e l |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| How to speak local time? | Rafael T. | Python | 1 | 2008-03-14 06:18 |
| Date & Time Editor in Form Resource. | Kavit Patel | General Symbian C++ | 2 | 2008-03-03 07:26 |
| Time is 1 hour off on Nokia 5300 | Yuriy | Mobile Java General | 2 | 2008-02-24 22:09 |
| Time Machine for Symbian Series 60 | kedarchitale | General Symbian C++ | 2 | 2006-03-30 21:44 |
| How to get correct time. | dzaga | Mobile Java General | 2 | 2003-08-06 23:03 |