MCPcopy Create free account
hub / github.com/avaneev/biteopt / select

Method select

biteaux.h:565–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563 */
564
565 int select( CBiteRnd& rnd )
566 {
567 Slot = rnd.getPowInt( 1.5, SlotCount );
568 Selp = rnd.getPowInt( SelPower, CountSp );
569
570 Sel = Sels[ Slot ][ Selp ];
571 IsSelected = true;
572
573 return( Sel );
574 }
575
576 /**
577 * Function returns the latest made choice index.

Callers 1

selectMethod · 0.45

Calls 1

getPowIntMethod · 0.80

Tested by

no test coverage detected