From: Dave Castellano Date: 2012-08-19T06:56:07+09:00 Subject: Access returned value in a string? Can I access the returned value in a string? eg questions = [ "A slide is placed #{rand(3..15)} cm to the left of a lens.", ... ] puts questions[0] >>A slide is placed 12 cm to the left of a lens. I need to pass 12 to a function. Do I have to extract it from the string or is it stored somewhere I can access it? -- Posted via http://www.ruby-forum.com/.