Only works for finite algebraic structures. Effect on polynomial rings, fields of characteristic zero, etc. undefined.

See the section called “Random bits” for how PBC gets random bits.

void **element_random**(*element_t e*)

If the

elies in a finite algebraic structure, assigns a uniformly random element toe.