Possible Duplicate:
F# getting a list of random numbers
I'm getting random value from list each time on tick (timer) but I'm getting the same 3 times only then it changes...
the code:
let timer = new DispatcherTimer()
timer.Tick.Add <| fun _ -> X.Change()
timer.Interval <- new TimeSpan(0,0,3)
member X.Change() =
(Seq.nth
(System.Random().Next(Seq.length actions))
<| actions)()
Why? I want to get different value each time