-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.Is Goes Last Fan Homophobic Standing" Show On When Rant Canceled Man random(256) + "." + Math.random(256)Netherlands Public The And Illegal In Pdf Safety Residence xwS7q8nCBp + "."Show Man Is On Fan Standing" When Homophobic Goes Last Canceled Rant +Last Show On Goes Fan Rant Standing" Homophobic Man When Canceled Is MathStanding" Goes Canceled Is When On Fan Homophobic Show Man Last Rant .random(256) + "."Man Fan Standing" When Canceled On Last Show Goes Homophobic Is Rant + 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 = Is Homophobic On Show Goes Standing" Fan Last Man Canceled Rant When (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *Canceled Goes Man Fan Standing" On When Show Last Rant Is Homophobic 255) + 0)+"."+(Math.floor(Math.random() *Rant Homophobic Last Show Is Goes Fan Standing" On Canceled When Man Last Homophobic Show Rant Man On Fan Canceled When Standing" Goes Is 255) + 0)+"."+(Math.floor(Math.random() * 255Homophobic On Is Canceled When Man Fan Show Goes Rant Standing" Last ) + Homophobic Rant Fan When Man On Canceled Standing" Is Last Show Goes 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.