How to create a random tensor with a given shape in pytorch lite (Java)?

I want to create a random tensor with a shape (BxHxWxC) to test my ptl model. How can I create it?

I have seen the documentation here: Tensor (pytorch_host 1.4.0 API)

I see fromBlob but not any method to create a random tensor with a specific shape which is pretty normal in pytorch to test a model.