Assigning random weights and biases to layers

Hi, I need to assign weights and biases to all of the layers in my model. I implemented my model in torch C++ and later I will use weights from pretrained tensorflow python model. But for now I only need to assign random weights to my model to do inference on model. How can I accomplish that? Thanks in advance.