Thanks for that... very good.. with the 'random_element' method. On 24 November 2010 21:16, pang <pablo.ang...@uam.es> wrote:
> > How many different ways can £2 be made using any number of coins? > > wiv = WeightedIntegerVectors(200, [1,2,5,10,20,50,100,200]) > wiv.count() > 73682 > > Try the different methods of wiv for other questions. I read this in > the Sage book in french: > > http://sagebook.gforge.inria.fr/ > > Regards > > -- > You received this message because you are subscribed to the Google Groups > "sage-edu" group. > To post to this group, send email to sage-...@googlegroups.com. > To unsubscribe from this group, send email to > sage-edu+unsubscr...@googlegroups.com<sage-edu%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/sage-edu?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.