FYI, this isn’t implemented yet:
>>> torch.cuda.FloatTensor(3,2).random_()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'torch.cuda.FloatTensor' object has no attribute 'random_'

But, @smth’s suggestion works greatly.