We need to generate 8 random numbers and put them in a list, then test if they're even. The one at a time, going through the list, if the number is even then we put "Do" into jobList and if the number is odd then we put "Task" into jobList. We keep getting the issue where the list is resetting every time, then when we exit the for loop, jobList is just empty
let genRandomNumbers count =
let rnd = System.Random()
List.init count (fun _ -> rnd.Next(1,9))
let list = genRandomNumbers 8
printfn "Original: %A" list
let isEven x = (x % 2) = 0
let isOdd x = isEven x = false
let jobs = []
let jobList = []
for i in list do
printfn "%A" i
if(isEven i) then
let jobList = List.append jobList ["Do"]
printfn "%A" jobList
else
let jobList = List.append jobList ["Task"]
printfn "%A" jobList
//printfn "%A" jobsList
//jobList = ["Do"]
//printfn "%A" jobList