Comment on Soup of Theseus

<- View Parent
NeatNit@discuss.tchncs.de ⁨2⁩ ⁨days⁩ ago

In python the closest I could find was (untested): sum(random.sample([1, 0], spoon_size, counts=[soup_count, water_count]))

But this would create an intermediate list of length spoon_size which is not a good idea.

source
Sort:hotnewtop