hi guys, i'm trying to achieve a kinda string function in which when a paragraph is entered by the user...it randomly removes the spaces between a few words each time giving different results( thats the idea of what i'm trying to achieve..) for example
tiger is the most powerful animal
may be converted to
tigeris the most powerfulanimal
or
tiger isthe mostpowerful animal and n such results...
now what ive done upto now is get all the text into separate words in an array using the split function.now i was thinking to reintroduce spaces into all except few random ones.. how do i achieve this? or may be a different approach??
Quote:
tiger is the most powerful animal
may be converted to
tigeris the most powerfulanimal
or
tiger isthe mostpowerful animal and n such results...