How to use the dollar function from chance
Find comprehensive JavaScript chance.dollar code examples handpicked from public code repositorys.
131 132 133 134 135 136 137 138 139 140
pool: '0123456789' }); } break; case 'dollar': s += chance.dollar().toCsv(CSV.delimiter); break; case 'domain': s += chance.domain().toCsv(CSV.delimiter); break;
2
8
0
GitHub: sylvainv/pg-manati
147 148 149 150 151 152 153 154 155 156
async.series([ function (cb) { test.app.post('/data/misc_data') .set('Content-Type', 'application/json') .send(data = { 'money_data': chance.dollar({max:999}), 'bool_data': chance.bool(), 'mood_data': chance.pickset(['sad', 'ok', 'happy'], 1)[0], 'bit_data': '101' })
2
5
4
chance.word is the most popular function in chance (344 examples)