Related to queue

Hi,
I want to know how I can initialize my queue with the $urandom_range method…
Like if I declare a bounded queue and I want to initialize this with $urandom_range Like-

module queue;
 int q[$:5];
initial begin
  q={$urandom_range(1,100)};
  $display("size of q is %0d",q.size());
  $display("elements if queue=%p",q);
end
endmodule

Then i am getting output:

KERNEL: size of q is 1

KERNEL: elements if queue='{15}

But I declared my queue for 6 elements and in the output, I am getting only one element.
Please reply asap.
Thanks in advance.

In reply to Rajneesh Kumar:

When you declare a bounded queue, that is only a maximum limit to the size of the queue. You still have to allocate the elements.

initial begin
   repeat (5) q.push_back{$urandom_range(1,100)};

In reply to dave_59:

Thanks, Dave sir …I got it…

Very helpful.