From: Austin Ziegler Date: 2004-09-28T05:20:43+09:00 Subject: Re: {newb} Each statements Try using #map instead. On Tue, 28 Sep 2004 05:13:30 +0900, STEPHEN BECKER I V wrote: > Do each statements change the thing that they are using? > data is a a string. ndata=data.dup # dup is probably what you want here a = ndata.size-1 srand(5000) ndata.map { |c| c=((c-97)+rand(10))%26 } -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca : as of this email, I have [ 6 ] Gmail invitations