Thanks to all for your help is very useful...

I have to create 5 variables x1 to x5 so I use

Code:
foreach x of newlist x1-x5{
gen `x' = 2*x
}
but I need to have a specific result
Code:
x1 = 2*x
x2 = 4*x
x3 = 6*x
x4 = 8*x
x5 = 10*x

x = rnormal()
I have difficulty how to put all that in one boucle...

Thanks for your help

Patrick