On Friday, 21 January 2022 at 21:01:11 UTC, forkit wrote:
even better, I got rid of all those uncessary arrays ;-) // --- int[][int][] CreateDataSet (const(int) recordsNeeded, const(int)valuesPerRecord) { int[][int][] records; records.reserve(recordsNeeded);foreach(i, id; iota(iotaStartNum, iotaStartNum + recordsNeeded).enumerate)
{records ~= [ id: iota(valuesPerRecord).map!(valuesPerRecord => cast(int)rnd.dice(0.6, 1.4)).array ];
} return records.dup; } // ---