Program for Random numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Program for Random numbers

A program that can create Random numbers between 0 to 9 and save that into a text file and loop turns how many times it will create to make 100 MB file from Random numbers

5th Mar 2018, 5:15 PM
Omkar Tripathi
Omkar Tripathi - avatar
3 Answers
+ 4
int iRand = 1 + rand() % 9; after, you know loops so you can create alone :)
5th Mar 2018, 5:17 PM
NoxFly
NoxFly - avatar
+ 3
you're welcome ^^ sorry, but c++ isnt my langage so I can't help you more ...
6th Mar 2018, 8:44 AM
NoxFly
NoxFly - avatar
+ 2
Thanks @ NOXfly and Jayden...but saving that Random numbers into a file is the most important part that's the part I don't know can you help me with that??😧😧
6th Mar 2018, 8:39 AM
Omkar Tripathi
Omkar Tripathi - avatar