?node_id=3989;HIT=histogram;re=N
Perhaps you could adapt the code from one of the following:
In reply to Re^3: build a distribution by toolic in thread build a distribution by Grig