1 Replies - 1142 Views - Last Post: 04 February 2012 - 01:32 PM Rate Topic: -----

#1 Jalaxe   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-February 12

Creating a Non-Repeating List

Posted 04 February 2012 - 01:26 PM

Before getting started, I'm new to VB and currently using Visual Basic 2010 Express. Just want to make sure I've got this in the right forum and my apologies if I'm not.

Alright, into the heart of the issue. I'm trying to create a simple program that I'll be building on later, but for now I'm having trouble wrapping my head around this basic coding idea.

Uses: 1 button, 16 labels

I have 16 cities (those would be my string variables, right?) that I want to appear on my 16 labels in random order without repeating when I click the button. So basically label 1 can be any of my 16 cities, label 2 then will be any of 15 left available cities, and so on and so on.

I was able to get the code to randomize numbers between 1 and 16 that appear on my labels when clicked. But every label has the exact same random number, which doesn't help..

Any other questions, I'll respond as soon as possible.
Thanks for the help!

Is This A Good Question/Topic? 0
  • +

Replies To: Creating a Non-Repeating List

#2 nK0de   User is offline

  • Catch me As Exception
  • member icon

Reputation: 206
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: Creating a Non-Repeating List

Posted 04 February 2012 - 01:32 PM

You should post the code you have written so that we can see where the problem is.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1