Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions.js L-226 generateRandomMacAdd() #2

Open
abuTalhaOFC opened this issue Mar 1, 2022 · 0 comments
Open

functions.js L-226 generateRandomMacAdd() #2

abuTalhaOFC opened this issue Mar 1, 2022 · 0 comments

Comments

@abuTalhaOFC
Copy link

//2.16
genaretRendomMac = () =>{
let macAsset = [0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f']

   let one1 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let one2 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let two1 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let two2 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let three1 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let three2 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let four1 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let four2 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let five1 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let five2 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let six1 = macAsset[Math.floor(Math.random()*macAsset.length)]
   let six2 = macAsset[Math.floor(Math.random()*macAsset.length)]



   return`${one1}${one2}-${two1}${two2}-${three1}${three2}-${four1}${four2}-${five1}${five2}-${six1}${six2}`

}
console.log(genaretRendomMac())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant