Hello. If you are using Random.range to generate values, is there any way to exclude some values within the range (for example: pick a number between 1 and 20, but not 6 through 8)? Thanks
asked Dec 29 '10 at 12:22 AM
The Random class doesn't have any built-in support for this, no. But, you can easily write your own code to achieve the same behavior (the details will depend on the context of course).
answered Dec 29 '10 at 12:54 AM