in reply to Re^2: keep track of array indexes
in thread keep track of array indexes
the code is somehow keeping track of changes in the @words array and updating the @order array.@words = "this is my sentence" @order = 0, 3, 1, 2 print @order randomize(@words) @order = 2,1,0,3 randomize(@words) @order = 1,0,3,2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: keep track of array indexes
by choroba (Cardinal) on Jan 02, 2016 at 20:58 UTC | |
by LanX (Saint) on Jan 03, 2016 at 05:08 UTC | |
by choroba (Cardinal) on Jan 03, 2016 at 17:58 UTC | |
by LanX (Saint) on Jan 03, 2016 at 18:03 UTC | |
by Cristoforo (Curate) on Jan 03, 2016 at 00:05 UTC |