BingoCardGenerator icon indicating copy to clipboard operation
BingoCardGenerator copied to clipboard

Frequent request: a way to call words/phrases

Open cherdt opened this issue 11 years ago • 2 comments

Basically, sampling without replacement from the list used to create the cards. Probably just use array.splice. Maybe add a button to the page that sends the creator to another page?

cherdt avatar Sep 11 '14 02:09 cherdt

Example:

var list = ["alpha","beta","gamma","delta"], i, word;
for (i = 0; list.length > 0; i = i + 1) {
    word = list.splice(Math.floor(Math.random()*list.length), 1);
    console.log(word);
}

cherdt avatar Sep 11 '14 03:09 cherdt

Done (but not yet linked from the main bingo form): http://osric.com/bingo-card-generator/call-generator.html

cherdt avatar Jan 01 '16 20:01 cherdt