Team:TU Delft/fb display
From 2010.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
var n = 10; // select 6 random pictures | var n = 10; // select 6 random pictures | ||
var imghtml = ""; | var imghtml = ""; | ||
- | var done={} | + | var done={}, j=0, und; |
- | + | ||
- | + | while(j<n) { | |
- | while(j<n) | + | |
var x = Math.round( Math.random()*response.data.length ); | var x = Math.round( Math.random()*response.data.length ); | ||
if (und === done[x]) | if (und === done[x]) |
Revision as of 00:44, 16 June 2010