The factors contributing to evolution of androdioecy, the coexistence of hermaphrodites and males such as in Caenorhabditis elegans, remains poorly known. However, nematodes exhibit androdioecy in at last 13 genera with the predatory genus Pristionchus having seven independent transitions towards androdioecy. Nonetheless, associated genomic architecture and sex determination mechanisms are largely known from Caenorhabditis. Here, studying 47 Pristionchus species, we observed repeated chromosome evolution which abolished the ancestral XX/XO sex chromosome system. Two phylogenetically unrelated androdioecious Pristionchus species have no genomic differences between sexes and mating hermaphrodites with males resulted in hermaphroditic offspring only. We demonstrate that stochastic sex determination is influenced by temperature in P. mayeri and P. entomophagus, and CRISPR engineering indicated a conserved role of the transcription factor TRA-1 in P. mayeri. Chromosome-level genome assemblies and subsequent genomic analysis of related Pristionchus species revealed stochastic sex determination to be derived from XY sex chromosome systems through sex chromosome-autosome fusions. Thus, rapid karyotype evolution, sex chromosome evolution and evolvable sex determination mechanisms are general features of this genus, and represent a dynamic background against which androdioecy has evolved recurrently. Future studies might indicate that stochastic sex determination is more common than currently appreciated.