import randomif you're just dicking aroundfrom os import urandomif you want actual randomness
>>55789131int get_random()
{
return 4; // Chosen by a fair dice roll.
// Guaranteed to be random.
}
>>55789485
>It doesn't workfrom os import urandom
main_numbers=[]
main_number_count=0
while main_number_count<4:
number=random.sample([
1, 2, 3
], 1)
main_numbers.append(number)
main_number_count+=1
print (main_numbers)
>>55789131
Mersenne twister
mouse pointer position
>>55791972
oh sorry, you wrote "cool" ways
I'm legally blind
>>55789959
are you stealing from xkcd or smbc? i can't remember
>>55790013
stop it.