D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
d33pfri3d
Full window
Github gist
// source http://jsbin.com/motaki
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <script id="jsbin-javascript"> var food = [2,3,4,5,5,5]; for (i=0; i<9; i++) { console.log(food[Math.floor(Math.random()* food.length)]); } </script> <script id="jsbin-source-javascript" type="text/javascript">var food = [2,3,4,5,5,5]; for (i=0; i<9; i++) { console.log(food[Math.floor(Math.random()* food.length)]); }</script></body> </html>