Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2016 17:57
Show Gist options
  • Select an option

  • Save anonymous/9d32881c40ac88c3ca9d to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/9d32881c40ac88c3ca9d to your computer and use it in GitHub Desktop.
JS Bin [add your bin description] // source https://jsbin.com/gezohi
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
students = ["Nasif", "Asraf", "Habib", "Juan" ];
function pick_random_student(students) {
next_victim = students[Math.floor(Math.random() * students.length)];
return next_victim
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">students = ["Nasif", "Asraf", "Habib", "Juan" ];
function pick_random_student(students) {
next_victim = students[Math.floor(Math.random() * students.length)];
return next_victim
}
</script></body>
</html>
students = ["Nasif", "Asraf", "Habib", "Juan" ];
function pick_random_student(students) {
next_victim = students[Math.floor(Math.random() * students.length)];
return next_victim
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment