|
-
September 9th, 2010, 11:38 AM
#1
Is is possible to have weights in Random Range.
I've searched the internet, I've seen weights used in an array list or enum but i havent seen it used in a random range.
I mean if I'm using Random
Code:
Random.Next(Min, Max);
method. and i have a min random number range of 3, and max random number range of 5.
I want to use weights that add up to 1.00
Range number 3 = .50 or 50%
Range number 4 = .45 etc
Range number 5 = .05 etc
I guess my question is pragmatic meaning that what is the logic on weights on how do you trick the program to make it think that one number weight more then the other so when it does randomly picks a number it using the weights...
Any help will be greatly appreciated..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|