Help: Randamize

hi,

i need help in this, i have an array composed of 9 values, and i have a button , i want when i click on that button to re arrange the values on the array , i don't want to arrange them in order , but all what i want is that every value in the array to change its index randomly

can anyone help me plz




Answer this question

Help: Randamize

  • Mike Perri

     

    Shakalama,

    I'm a woman.

    I was glad the gentleman above found you an example please note that example is a vb6 example.

    It looks as if those arrays are 1-based instead a zero and there will be monor syntax changes such as "Next i" will be simply "Next".

    If I can be of anymore help I'll be happy to do what I can.

     

     

     

     



  • Omar AlAmoudi

     

    This could mean one of two things

     

    Either a one dimensional array where you change the items

     

    Or a two dimensional array.... the first containing the items and the second being an array of indexes which are changed.

    In this array you simply choose a number between 0 and 8 for each index. You also have to keep track of whether an index had alread been allocated.



  • Gilles Lafreniere

    thx omar and reneec

    that code was helpfull

    and sorry reneec for that missunderstanding

    thx



  • Tosch

    hi,

    Sorry sir i'm new to all those things if you don't mind would you show me how i can do that i'll be thxfull

    many thanks



  • John Ericson174499

  • Help: Randamize