The usual practice, when we need some test data, is to employ the pseudo-random built-in function RAND(). We usually use it to produce a random value in some range and it produces these values with the same probabilities. Sometimes we need more "realistic" data when some values are more probable than others are. In this cases we can still use RAND() function. The simple "trick" is to call it to produce a random number into the desired range and then use this value as a one of the boundaries of a new range. Run the script to see the sequence that it will produce. Notice that you can apply the "trick" more times to produce values with more "different" probabilities.
Fast Track to MDX gives readers all the necessary background information needed to write useful, powerful MDX expressions and introduces the most frequently used MDX functions and constructs. No prior knowledge is assumed and examples are used throughout the book to rapidly develop MDX skills to the point where a reader can solve real business problems. A CD containing examples from within the book, and a time-limited version of ProClarity, is included