Thread
:
Rand() function seeded srand(time(0)
View Single Post
Translation
Reply
Posted 2004-11-08, 12:35 PM in reply to
Demosthenes
's post starting
"This isn't the chat forum. Deadlock,..."
mjordan2nd said:
This isn't the chat forum.
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.
Profile
PM
WWW
Search
deadlock75