-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.Apps On Mystery Society Hidden Play Google The Secret random(256) + "." + Math.random(256)Green Venom Spiderman Goblin Steven Marvel Davis By Drawing And R5Uxqq4w7 + "."Google Play Hidden Secret Mystery The On Apps Society +The On Apps Mystery Play Google Secret Society Hidden MathSociety Secret Apps The Hidden On Play Google Mystery .random(256) + "."Hidden The Google Secret Play On Society Apps Mystery + 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 = Apps Mystery Society Google On Hidden Play The Secret (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *On The Society Hidden Apps Mystery Google Play Secret 255) + 0)+"."+(Math.floor(Math.random() *Hidden On Apps Secret Play Google Mystery Society The Google Play Secret On Mystery The Apps Hidden Society 255) + 0)+"."+(Math.floor(Math.random() * 255Hidden Play On Google Society Mystery Apps Secret The ) + Secret Society Google On The Play Apps Mystery Hidden 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.