Skip to content

Instantly share code, notes, and snippets.

@DirtyF
Created May 5, 2017 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DirtyF/700799313d974bb36a806d3622b22b47 to your computer and use it in GitHub Desktop.
Save DirtyF/700799313d974bb36a806d3622b22b47 to your computer and use it in GitHub Desktop.
Tirage au sort pass Sud Web 2017
const participants = [
"cecilehabran",
"simoncaule",
"Avelka",
"a_lamirault",
"L_Demontiers",
"Cabaroc",
"rmostz",
"bndctlambert"
];
var gagnant = participants[Math.floor(Math.random() * participants.length)];
console.log("Le gagnant est : @" + gagnant);
@DirtyF
Copy link
Author

DirtyF commented May 5, 2017

$ node tirage_au_sort.js
Le gagnant est : @simoncaule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment