# Learn Functional Programming by Building a Spreadsheet - Step 102

### Tell us what’s happening:

I don’t understand what I am supposed to do here honestly. ive been trying for so long

``````<!-- file: index.html -->

``````
``````/* file: script.js */
// User Editable Region

sum,
average,
median,
even: nums => nums.filter(isEven),
someeven: nums => nums.some(isEven),
everyeven: nums => nums.every(isEven),
firsttwo: nums => nums.slice(0, 2),
lasttwo: nums => nums.slice(-2),
has2: nums => nums.includes(2),
increment: nums => nums.map(num => num + 1),
random: nums => {
const numbers = nums.splice(0, 2);
const floor = Math.random(Math.min(numbers) + Math.max(numbers))
return Math.floor(floor)
}
}

// User Editable Region
``````
``````/* file: styles.css */

``````

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36`

### Challenge Information:

Learn Functional Programming by Building a Spreadsheet - Step 102

i think they wanted you to write all of this into one line of code

Can you take away the extra variables and just write one line of code that combines Math.floor and Math.random to do this? You will need to grab the first 2 numbers of the array by using parameter destructuring.

edit: also this part does not make sense?

If you need to remember how to get a random number between two values, you can review one of the older projects? (just click on the last step in the random color changer project to review how this is done)