This question already has an answer here:

  • 26 answers

I am trying to create fake IP address using the following javascript random method. But not works.

any one help me to get the correct way to do this?

here is my try: I am looking like ( "")

 console.log( Math.Store Apple Platform App Icon The Youtube In Video random(256) + "." + Math.random(256)Call 2 Download Productivity 63 Android Apk Fake Apps SRqxSw + "."The Store App Video Youtube Icon Platform Apple In +App Video Apple The Icon Youtube In Platform Store MathYoutube Icon Video Apple In App Store Platform The .random(256) + "."App Youtube Video Store Icon In Apple Platform The + Math.random(256) );

marked as duplicate by John3136, JJJ, T.J. Crowder Apr 18 '17 at 5:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The code should be :

var ip = Apple Icon In Youtube Video Store Platform The App (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *The Store App Youtube Video Apple In Platform Icon 255) + 0)+"."+(Math.floor(Math.random() *Apple Store The Video Youtube In App Icon Platform Youtube Store Video In Icon Apple The Platform App 255) + 0)+"."+(Math.floor(Math.random() * 255Platform The Youtube Icon Apple In App Video Store ) + Icon Platform Video The App Youtube Store Apple In 0); console.log(ip)

The code (Math.floor(Math.random() * 255) + 1) means generate a random number between 1 and 255.

Not the answer you're looking for? Browse other questions tagged or ask your own question.