tbranyen: here's a painfully dirty trick: Array(5).join(',').split(',').map(Math.random);