Deadlock, I'm not sure what you're askinng, but if you want it less than 100, just use an if statement to limit it, and save that value to an array.
I am to post to use rand() (seeded with either srand(time(0)) or with randomize(), to generate a small arrays of dimsion 20, such that the entries are random positive integers less than 100. Then I have make sure to implement the bubble sort and the exchange sort and sort the random array of integers.