int ChunkSize, FreeChance, FreeCount, BusyCount, Count;
char *p;

srand(GetTickCount());
Count = (rand() % 1000) + 10;
FreeCount = BusyCount = 0;

for (i = 0; i < Count; i++)
{
	FreeChance = (rand() % 100);
	ChunkSize = ((rand() % 1016) + 8) & 0xFFFFFFF8;
	printf("\tAllocate %d size chunk", ChunkSize);
	p = GetChunk(pHeap, ChunkSize); assert(p);
	if (FreeChance < 50)
	{
		printf(" (freed)\n");
		FreeCount++;
		HeapFree(pHeap, 0, p);
	}
	else
	{
		putchar('\n');
		BusyCount++;
	}
}
printf("\nBase condition (all chunk sizes are < 1K):\n\t%d allocs\n\t%d frees\n\n", Count, FreeCount);
