Grasshopper PointCloud on XYZ grid - C#

This isn’t C# but I wrote it to generate color palettes - there is a disabled random reduce feature off to the right. I just increased the ‘Steps’ slider maximum from 10 to 100 and it generates a grid of 103823 points (47 X 47 X 47) in roughly six seconds. (25.9 KB)