How to use the d6 function from chance

Find comprehensive JavaScript chance.d6 code examples handpicked from public code repositorys.

163
164
165
166
167
168
169
170
171
172
songList = songList.map(function(song) {
    totalPrice += song.price;
    return {
        song: song,
        price: song.price,
        quantity: chance.d6()
    };
});
var albumList = chance.pick(albums, 4);
albumList = albumList.map(function(album) {
fork icon1
star icon1
watch icon0

108
109
110
111
112
113
114
115
116
117
round: {
  turn: 1,
  dice: [
    {
      locked: false,
      value: chance.d6()
    },
    {
      locked: false,
      value: chance.d6()
fork icon0
star icon1
watch icon0

+ 11 other calls in file