-2

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 ( "192.168.10.2")

 console.log( Math.App Store Youtube In Icon Video Platform The Apple random(256) + "." + Math.random(256)Card Holder Holders Id Badge Colorid EtwxaTqXq + "."App Icon In Platform The Apple Youtube Store Video +Video App In Icon Youtube The Store Platform Apple MathStore Video Icon In Apple Platform Youtube The App .random(256) + "."App Platform Icon Video Youtube In The Apple Store + 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.

7

The code should be :

var ip = Icon Apple In Platform The Store Video App Youtube (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *The Video In Store Apple Platform Icon Youtube App 255) + 0)+"."+(Math.floor(Math.random() *Icon Youtube Store The Apple App Video In Platform Store Platform In Youtube Icon The Apple Video App 255) + 0)+"."+(Math.floor(Math.random() * 255The Apple Platform App Video Store In Icon Youtube ) + Video App Icon The In Apple Platform Store Youtube 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.