I am trying to just plot a bunch of random points from -10 - 10 using Rndm(). I am having trouble figuring out how to apply it and use it. Here is what I wrote:
void Random(){
TH1D *h = new TH1D(“h”. “h”, 10, 10, 10);
for(int i = 0; i<100; i++){
double val = new Rndm()*10;
h->AddPoint(val);
}
h->Draw();