You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Along with theft_random_choice and theft_random_bits, there should be a function that takes a length and a pointer to a size_t array at least length cells long, and writes shuffled indices into that array.
Along with
theft_random_choice
andtheft_random_bits
, there should be a function that takes a length and a pointer to asize_t
array at least length cells long, and writes shuffled indices into that array.void theft_random_shuffle(struct theft *t, size_t length, size_t *indices);
This could be done with Fisher-Yates.
The text was updated successfully, but these errors were encountered: