histogram example in Random