Re: [R] R random number generation

2008-10-23 Thread hiphop
after 1,2 it should be 1,2,3 and the sequence generated should have 1,2,3 atleast once.then it should generate a random sequence of numbers 1,2,3,4 ...it should go on till it generates 1,230.hope am clear now. hiphop wrote: > > i have to generate random numbers from length 2 to 30 and

[R] R random number generation

2008-10-23 Thread hiphop
i have to generate random numbers from length 2 to 30 and length two should have the numbers 1,2 and length 3 should have the numbers 1,2,3 so on and so forth till size 30.i should get an sequence like 221 or 112 till both the values appear and for 3 it should be 123 or 3331112.i shoul