Visualize the Density of Two-Dimensional Data in Bins

    
Create 1000 random points and compute the number of elements in a 2D array of bins:
Colorize the number of elements using ArrayPlot:
Visualize the number of elements as heights in 3D: