Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




 
let N = System.Random()
let G = List.init 10 (fun _->N.Next())
List.iter (printf "%d ") G
printfn "\nMax value of list is %d" (List.max G)
 