This generates i.i.d. uniform random numbers between 0 and 1.
#include <torch/torch.h>
#include <iostream>

int main(){
        torch::Tensor tensor = torch::rand({10});
        std::cout<< "Tensor " << tensor << std::endl;
        return 0;
}