Generate random number in a interval
2014-10-12, 08:36 AM,
#1
Hello Everyone! Hello Everyone!
As you can see in the title a need a code that can provide a random number within a interval chosen by me.
The number should change with every refresh on the page.
Thanks anyway.
Reply
2014-10-12, 08:43 AM,
#2
<script>
document.getElementById(' insert element name here ' ).innerHTML( Math.floor((Math.random() * maximumnumber) + minimumnumber) )
</script>

That should work..
Latest Thanks - View all

UploadMe(2014-10-12 06:57 PM) 

[Image: u90z4i6.png]
Reply
2014-10-12, 02:46 PM,
#3
Thank you Twisted Fate for code share :)

[Image: bg.png]
Reply
2014-10-12, 02:58 PM,
#4
wow, thanks I need it too for my project
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [GET] How To Generate Web Design Assets In Photoshop With Just One Click cindy2145 0 422 2017-04-30, 03:06 AM
Last Post: cindy2145
  Any way to track the number of downloads? r00tb0t 3 1,028 2016-09-14, 12:53 AM
Last Post: SuperSimple
  [HELP] How to make pictures go random on my website? IcoSLJ 2 619 2015-10-22, 11:46 AM
Last Post: Rahul
  Generate Keys VB.NET n00b 4 961 2013-10-30, 04:40 AM
Last Post: rinor4ever




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top