sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
Ask iit jee aieee pet cbse icse state board community Discussion Response Post to: C++
Forum Index -> Computer Science -> View Full Question like the article? email it to a friend.  
Author Message
sagarvaze (253)

Scorching goIITian

Olaaa!! Perrrfect answer. 39  [68 rates]

sagarvaze's Avatar

total posts: 287    
offline Offline
use rand function like

int a=rand()

to get numbers in a range say 0 to 9

int a=rand() % 10

you need cstdlib for this





 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya