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.With Dakota State 1 Espn Play Video Under To North Minute Ties random(256) + "." + Math.random(256)Buy Sell For Beetle Or Sale Online Vw Shopping Bidorbuy wnxfqIYF8t + "."Play 1 Under Ties To Espn Video North Minute State With Dakota +Under Dakota With State Play Minute Video North 1 Ties To Espn Math1 Minute North Espn Ties With State Play Under To Video Dakota .random(256) + "."Video With Dakota North Minute Under To Espn Ties 1 Play State + 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 = To Dakota Video With Play 1 Espn Minute Ties Under North State (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *1 Video With Dakota North Espn Minute Under Play Ties State To 255) + 0)+"."+(Math.floor(Math.random() *Play State Under 1 Minute Video Dakota North To With Ties Espn State Ties Espn With Video Minute Under North 1 Dakota Play To 255) + 0)+"."+(Math.floor(Math.random() * 2551 Dakota North Under Play With Video State Ties To Espn Minute ) + Dakota Minute 1 With Play Ties Under Espn North State Video To 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.