#WSQ06 Random Number

This is getting interesting, adding other libraries(if you know which are the right ones) is a very useful tool, in this case, we use the <cstdlib> and the <ctime>

Here´s my code and here how it looks:

rand

My friend Alex helped me telling me which libraries i had to add, check his blog if you want to, he´s one step above me at this moment.

Doing my research i found that many tutorials or users are still using .h libraries.

Just a problem, i still don´t know why we had to write the random number function in base of the time, ill figure it out later.

I run the program and vuala

rand1

Doing this post was very important, why? because it involve loops, which are very helpul in almost all the codes we´re going to do.

CC BY-SA 4.0 #WSQ06 Random Number by dariomagana10 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.