|
Instructions: shuffleshuffle <list_var>
Instructions: shuffleShuffle Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist.
Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_valList items are shuffled to Numeric functions: randomrandom order.
Operators: Bitwise Not "~" Operators: Boolean Negation "!"Note on Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiernames: currently (version 0.8.8), Flow control: if … then Flow control: if … thenif the Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist contains named items Flow control: if … then Flow control: try … thenthen vipsi - the friendly one.: The namethe names are moved along with their data. Thus accessing items by Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername yields Flow control: if … then Flow control: try … thenthe same data as prior to shuffling, except Flow control: if … thenif multiple items with same Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername are present in Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist. List functions: thisThis may be changed. Future version will probably only move Flow control: if … then Flow control: try … thenthe data Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and no Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiernames.
e.g.:
vipsi> Instructions: var How does VScript::Value() work?: Var*&var mylist = {1,2,3,4,5,six=6,7,8,9,0}
vipsi> Instructions: shuffleshuffle mylist
vipsi> mylist = { 1, 7, 4, 5, 0, 3, 9, six=6, 8, 2 }
vipsi> Instructions: shuffleshuffle mylist
vipsi> mylist = { 1, six=6, 8, 2, 3, 4, 0, 5, 7, 9 }
vipsi>
| |