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
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
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
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