How to assign a $urandom 32'h to a array of bit wise

module top;
initial begin
static int number = $urandom;
static int count;
bit bnum[31:0] = number;//--->how can i assign a number to array of 32 bit

$display("number = 32'h%h",number);//---->32'h random number
$display("number = 32'b%b"number);//-->32'b number
count = bnum.sum();
$display("count = %d",count);

//using this random number I need to find number of 1’s in 32 bit binary

But I’m not able to conver the type of random number and assign it to array.
could any one please help me with this.
thanks in advance.