Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with generating random fixtures
#2
I supose you're going to use an array for the inputted strings?
I'm not 100% sure, haven't coded in vb.net for ages. It's all java now.
I would know how to do it with the strings already there but not if you don't know what they are.

You could ask them to input the amount of strings they are going to insert and hold it in a variable such as ins then do
Dim num As Integer = random.Next(ins)

In java if I used an array I would just do array.length to find how many elements are in the array instead of asking them to input how many they are going to insert.
Not sure how to do that in vb.net though think you need to use upperbounds method.
[Image: burninglove4.png]
Reply


Messages In This Thread
RE: Need help with generating random fixtures - by Untouch - 03-13-2011, 04:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [How to] Create random strings(upper,lower and integers)[Src] Modestep 11 2,921 05-14-2011, 02:17 AM
Last Post: モrainee
  [Snippet] Random pick from list (Range) euverve 0 691 05-12-2011, 08:22 AM
Last Post: euverve
  [Tut] Generating Random Strings (200 Random Results = LIMIT) [Tut] Resistance 7 1,843 04-12-2011, 03:18 PM
Last Post: Resistance
  Generate Random Numbers & Letters [ Small Function ] MYPE 22 4,146 04-02-2011, 05:25 PM
Last Post: Pyratepig
  Random selection from list? pers2981 1 726 11-14-2010, 01:46 PM
Last Post: KoBE

Forum Jump:


Users browsing this thread: 2 Guest(s)