Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx41
var assert = require('assert');function randomPick(w) { // add your code here return;}try { let result = []; for (let i = 0; i < 5; i++) { result.push(randomPick([1, 3])); assert.equal([0, 1].includes(result[i]), true); } console.log('PASSED: ' + "`randomPick([1])` should return `[" + result + "]`");} catch (err) { console.log(err);}try { let result = []; for (let i = 0; i < 2; i++) { result.push(randomPick([1])); assert.equal([0].includes(result[i]), true); } console.log('PASSED: ' + "`randomPick([1])` should return `[" + result + "]`");} catch (err) {OUTPUT
Results will appear here.