140 assert(rnds != 0 && howmany > 0);
149 const G4int maxcycles = howmany / size;
153 const G4int peel = howmany % size;
165 if(maxcycles > 0 && currentIdx > 0)
167 assert(currentIdx <= size);
170 for(; cycle < maxcycles; ++cycle)
176 memcpy(rnds + (cycle * size), buffer,
sizeof(
G4double) * size);
190 if(currentIdx + peel >= size)
192 Fill(currentIdx < size ? currentIdx : size);
194 memcpy(rnds + (cycle * size), buffer + currentIdx,
sizeof(
G4double) * peel);
200 assert(currentIdx <= size);