You need to make roll_dice and roll into functions.

1
2
3
let roll_dice () = rnd.Next(1, 6) 

let roll () = (List.init 5 (fun i -> roll_dice ()), ([] : int list))
By on 1/9/2008 7:15 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper