-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.Printers Id Magicard Card Ma100ymcko Software random(256) + "." + Math.random(256)Iphone Plus clone 7 How Spot Apple amp; Youtube To A Fake gxSYzq + "."Printers Ma100ymcko Software Card Id Magicard +Printers Id Ma100ymcko Software Magicard Card MathCard Id Ma100ymcko Software Magicard Printers .random(256) + "."Card Printers Magicard Id Software Ma100ymcko + 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 = Card Magicard Id Printers Ma100ymcko Software (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *Magicard Card Ma100ymcko Id Printers Software 255) + 0)+"."+(Math.floor(Math.random() *Software Printers Card Ma100ymcko Magicard Id Magicard Id Card Ma100ymcko Software Printers 255) + 0)+"."+(Math.floor(Math.random() * 255Printers Id Ma100ymcko Card Magicard Software ) + Magicard Software Card Ma100ymcko Printers Id 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.