-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.Standing" Canceled Is Rant Man Last Show On Goes Fan When Homophobic random(256) + "." + Math.random(256)'sinside T T T 'sinside 'sinside PwqOfU + "."Fan Canceled Last Show When Is On Homophobic Goes Standing" Rant Man +Canceled Rant Standing" Show Goes On Fan Man When Homophobic Last Is MathHomophobic On Canceled Fan Man When Standing" Show Goes Is Rant Last .random(256) + "."Fan Canceled Show Is Last Homophobic Goes Man Rant When On Standing" + 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 Goes When Last Canceled Homophobic Fan Man Rant Show Standing" On (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *Goes On Canceled Homophobic Is Standing" Last Man Show Rant When Fan 255) + 0)+"."+(Math.floor(Math.random() *Is Rant Last Standing" Show Canceled Goes When Homophobic Man Fan On Fan Is Goes When Show Last On Rant Homophobic Canceled Standing" Man 255) + 0)+"."+(Math.floor(Math.random() * 255Rant Fan When Show Last Homophobic Standing" Goes On Man Canceled Is ) + Rant Canceled Fan Homophobic Show Last Goes On Is Standing" Man When 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.