Trying to generate random samples in increasing sizes within a for-loop. If you run the code below you might see expected trails for sizes 20,30 and 40 but different for size 10.

n_sizes = [10,20,30,40]
    for i in np.arange(len(n_sizes)):
        
           n_train = n_sizes[i]
           torch.manual_seed(4321)
           print(torch.randn(n_train))


tensor([ 0.7602,  0.0206, -0.5338, -0.9620, -1.7630,  0.4865,  2.1059, -0.5918,
        -1.2425, -0.7120])
tensor([-0.4716, -0.3436, -1.1742,  0.1221, -0.0493,  0.0144, -0.3218, -0.1144,
         2.0888,  0.8194, -0.8230, -0.4696, -1.0848,  0.4038,  1.6026,  2.4233,
         0.0374,  1.4740, -1.8088, -0.8935])
tensor([-0.4716, -0.3436, -1.1742,  0.1221,  1.3231, -0.6415,  0.8538, -1.8969,
         0.2142,  1.1937, -0.8704,  0.2439, -0.0453,  1.4172, -0.8123, -0.1934,
        -0.0318,  0.6023,  1.4111,  1.3920,  0.1090, -1.5328,  0.0391,  0.7470,
         0.0686,  0.0899,  0.5482, -0.5459, -0.5019,  1.1048])
tensor([-0.4716, -0.3436, -1.1742,  0.1221,  1.3231, -0.6415,  0.8538, -1.8969,
         0.2142,  1.1937, -0.8704,  0.2439, -0.0453,  1.4172, -0.0614,  1.5471,
         1.4126,  0.0268,  0.5757, -0.8794, -0.0493,  0.0144, -0.3218, -0.1144,
        -0.6089, -0.1303,  0.1426,  1.6467,  0.8824, -0.8752, -0.4935,  0.4820,
        -0.6308, -0.1754,  0.3182,  1.7125, -1.5122,  0.5076,  0.1487,  0.4369])