Re: [Tutor] Pygame related question

2014-05-25 Thread Peter Otten
diliup gabadamudalige wrote: > I need to random pick a pygame sprite from a sprite class. > The random module does not allow this to be used on a group. > Is the shortest way to raed in the attributes thatr I need into a list and > then random pick that or is there a shorter way? Sample code is gi

Re: [Tutor] Pygame related question

2014-05-25 Thread Dave Angel
Steven D'Aprano Wrote in message: > On Sun, May 25, 2014 at 12:48:40PM +0530, diliup gabadamudalige wrote: >> I need to random pick a pygame sprite from a sprite class. >> The random module does not allow this to be used on a group. >> Is the shortest way to raed in the attributes thatr I need int

Re: [Tutor] Pygame related question

2014-05-25 Thread Steven D'Aprano
On Sun, May 25, 2014 at 12:48:40PM +0530, diliup gabadamudalige wrote: > I need to random pick a pygame sprite from a sprite class. > The random module does not allow this to be used on a group. > Is the shortest way to raed in the attributes thatr I need into a list and > then random pick that or

[Tutor] Pygame related question

2014-05-25 Thread diliup gabadamudalige
I need to random pick a pygame sprite from a sprite class. The random module does not allow this to be used on a group. Is the shortest way to raed in the attributes thatr I need into a list and then random pick that or is there a shorter way? Sample code is given below. sc