Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to create random integers from a specific range in c language

//How to create random integers within a specific range in C langauge. 

srand(time(0))
number = (rand() % (upper - lower + 1)) + lower
//upper = max number
//lower = least number
Source by www.includehelp.com #
 
PREVIOUS NEXT
Tagged: #create #random #integers #specific #range #language
ADD COMMENT
Topic
Name
7+4 =