Thanks for prompt replies!
As I want integers, I will do following :
torch.Tensor(10).random_(0,10) - 5
This will generate integers between -5 and 5 following the uniform distribution.
Thanks again!
JPh