Bigraph.Basemodule type OrderedType = sig ... endmodule Set : sig ... endmodule Map : sig ... endmodule type HashedType = sig ... endmodule Hashtbl_yojson : sig ... endmodule S_string : sig ... endmodule M_int : sig ... endmodule M_string : sig ... endmodule H_int : sig ... endPick the first element whose get_prob exceeds limit from a list sorted by non-decreasing cumulative probability (inverse-CDF selection over a drawn threshold). Used by PBRS for random reaction rule selection. get_prob extracts the probability from an element; set_diff transforms the picked element, receiving the preceding element's probability (PBRS ignores it and sets the label to 1.0: a simulated-trace edge exports 1.0). The head, if picked, is returned unchanged.