In edit mode, the "Select Random" operator selected the inverse. For a probability of 1, no elements were selected and vice versa. This was because the selection actually deselects elements, but used a mask of elements that was not inverted. The fix takes the complement of the mask of elements, so the deselection now does the right thing. Pull Request: https://projects.blender.org/blender/blender/pulls/110963