MCPcopy Index your code
hub / github.com/NetHack/NetHack / randrole

Function randrole

src/role.c:718–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718int
719randrole(boolean for_display)
720{
721 int res = SIZE(roles) - 1;
722
723 if (for_display)
724 res = rn2_on_display_rng(res);
725 else
726 res = rn2(res);
727 return res;
728}
729
730staticfn int
731randrole_filtered(void)

Callers 13

mswin_player_selectionFunction · 0.85
curses_choose_characterFunction · 0.85
amii_player_selectionFunction · 0.85
halu_gnameFunction · 0.85
randrole_filteredFunction · 0.85
role_initFunction · 0.85
genl_player_setupFunction · 0.85
gnome_player_selectionFunction · 0.85
Gem_player_selectionFunction · 0.85
mswin_player_selectionFunction · 0.85

Calls 2

rn2_on_display_rngFunction · 0.85
rn2Function · 0.85

Tested by

no test coverage detected