Pinch Paxton Posted December 4, 2003 Share Posted December 4, 2003 Yipes! I have a difficult challenge! To work out the least number of lines it takes to guarantee £10 on the Lotto! Please read this thread as it explains everything. http://www.scienceforums.net/forums/showthread.php?s=&threadid=2243&perpage=20&pagenumber=1 I need a ..... For Next Loop to create all the combinations! Or a bunch of nested loops probably. Thanks! Pincho. Link to comment Share on other sites More sharing options...
wolfson Posted December 4, 2003 Share Posted December 4, 2003 You need a recursion to generate all the permutions for your lotto lines, off the top of my head I can’t think of the recursion but if you give me time I will try and locate one for you. Link to comment Share on other sites More sharing options...
wolfson Posted December 4, 2003 Share Posted December 4, 2003 Try looking at http://www.csse.monash.edu.au/~lloyd/tildeAlgDS/Recn/ and http://www.csse.monash.edu.au/~lloyd/tildeAlgDS/Recn/Perm/ and maybe www.cs.princeton.edu/courses/archive/spr01s126/demo/powerpoint/demo-enumerate.ppt Link to comment Share on other sites More sharing options...
Pinch Paxton Posted December 4, 2003 Author Share Posted December 4, 2003 Thanks! I'll take a look! Pincho. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now