n1concepts Posted February 25, 2012 Share Posted February 25, 2012 Hi, Can someone point me to either a tutorial or code that displays random number - to simulate changing entries such as 'open' positions left to be filled for an event? For example, say the value is set at 400, i need to then decrement that count down to 1 but during the 'countdown' process, randomly change between 400 and 1 to simulate open or filled positions. Example: count switches from 398 to 381, from 381 to 261, from 261 to 138, from 138 to 318, etc.... Is this possible w/JS? If so, can you point me to example code to review. Thx! Quote Link to comment https://forums.phpfreaks.com/topic/257763-looking-for-random-number-display-widget/ Share on other sites More sharing options...
requinix Posted February 25, 2012 Share Posted February 25, 2012 Math.random is the main part, the rest is just details. Quote Link to comment https://forums.phpfreaks.com/topic/257763-looking-for-random-number-display-widget/#findComment-1321140 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.