Right then, hopefully I am posting this in the right place (using
VB.NET 2003 mainly asp). I usually get by just googling my problem but not in this case ;)
I have user info from a database containing basic profile info. Name, address, hobbies etc. And a profile picture.
What I want is to make a little 'get to know each other game'. The idea is to separate the user info from the picture (on the html they get to see, as the data is already separate in the database). And post both randomly in two 3x3 grids. Also if there are more then 9 users, it needs to randomly select 9 from the entire list.
I am a beginning programmer and arrays have always confused me a bit and there is so much randomness in this little puzzle that I am getting swamped.
I can map it out in my head but putting it to code is eluding me.
What I have in my head btw: Get 9 out of x random users. Assign a random unique number (1-9 or 0-8 whatever) to them that corresponds with a place on the grid and fill the grid based on that.
Any help?
EDIT: Shuffling arrays seems to be popular but the picture still needs to be traceable to the info, taught I should mention that.