Changeset 14908 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Generators
- Timestamp:
- 05/02/17 22:03:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Generators/StringGenerator.cs
r14897 r14908 18 18 19 19 public string GetNext() { 20 var length = this.index < chars.Length ? 1 : (int)Math.Log(this.index, chars.Length) + 1;20 var length = index < chars.Length ? 1 : (int)Math.Log(index, chars.Length) + 1; 21 21 var result = new char[length]; 22 var tmp = this.index;23 this.index++;22 var tmp = index; 23 index++; 24 24 25 25 for (var i = length; i > 0; i--) {
Note: See TracChangeset
for help on using the changeset viewer.