Assigning queues in system verilog

In reply to confused kid:
Hi Dave,
if i want to randomize the fixed array how can I do that. I mean in the above example if i want to randomize h[k] or x[k]. How Can I do that?? I mean Can I just create a class such as

Class random;
rand bit[7:0] b;
end class

int h[8] = { b };
int x[8] = {1,2,3,4,5,6,7,8};

will it work???