52118

52118



■    Returns successive pseudo-random numbers in

the rangę from 0 to RAND_MAX

■    Example:

#include <stdlib.h>

#include <stdio.h> int main()

{inti;

printf("Ten random numbers from 0 to 99\n\n"); for(i=0; i<10; i++) printf("%d\n", rand() % 100); return 0;

}

void srand(unsigned seed);

■    Sets the random generator to a new starting

point, e.g. the current time

■    Example:

#include <stdlib.h>

#include <stdio.h> int main(void)

{ srand(10);

printf("%d\n", rand() % 100);



Wyszukiwarka

Podobne podstrony:
A curve B graph C integral in the rangę (-6;-1 D intercept with the x-axis E intercept
write number NAME: HOW MANY THINGS ARE THERE? WRITE THE NUMBER IN THE FRAME. for morę printables vis
001 6 Countries and nationalitiesVOCABULARY BANK a Match the flags with the countries. Write the num
4798 5 CASIOOperation Guide 4798 Timekeeping •    The year can be set in the rangę ot
Hooked on books 1 TEXT 1-TASK 1 For questions 1-7 choose which of the extracts A-H match the numbere
FSC503 Name Number sense MOThe Jolly e)carecrow Connect the dots from 1 to 10. Color. © Frank Schaf
FSC503 Name Numbersense 1-15First FrostConnect the dots from 1 to 15. © Frank Schaffer Pubłications
FSC503$ Name_ _ Numbersense 1-20Autumn HouseConnect the do+s from 1 to 20. Color. © Frank Schafler P
fund to Id in the dotted lines to make creases and fold back    / s i Iver paper The
2.    A change in the persons authorised to administer the funds in the account requi
FSC503 Name_ Number sense 1-20Mapie LeafConnect the dots from 1 to 20. Color.810 © Frank Schaffer P
FSC503( Name Alphabet seguence A-ZFuli of Apples Connect the dots from A to Z. Color. W How many app

więcej podobnych podstron