i made another extremely simple script, but i've looked through all the random python commands(10.6) and can't figure out how can i write a nonunique random script? as in all the random numbers can be the same?

like random.sample? say i have a list [1,2,3,4] and i want to pick a non-unique number, i.e. with sample size n...

the only way i can think of to do this is to loop the command n times and each time select 1 unique number...

for that matter, if i was going to loop, how would i do this? so far i have gotten away with execfile("") to loop the whole program