Changeset 170 for cpp/frams/genetics/oper_fx.cpp
- Timestamp:
- 03/13/14 00:36:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/genetics/oper_fx.cpp ΒΆ
r168 r170 182 182 for (int i = 0; i < Neuro::getClassCount(); i++) 183 183 if (Neuro::getClass(i)->genactive) active += Neuro::getClass(i); 184 if ( !active == 0) return NULL; else return active(randomN(!active));184 if (active.size() == 0) return NULL; else return active(randomN(active.size())); 185 185 } 186 186
Note: See TracChangeset
for help on using the changeset viewer.