Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F6952
Masterwork From Distant Lands
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Aug 21 2015, 10:09
2015-08-21 10:09:53 (UTC+0)
Size
302 B
Referenced Files
None
Subscribers
None
Masterwork From Distant Lands
View Options
#include <stdio.h>
#include <stdlib.h>
int aleatoire(int borne_1, int borne_2)
{
int nombre;
nombre = rand() % ((borne_2 - borne_1) + 1) + borne_1;
return nombre;
}
int main()
{
srand((unsigned int)time(NULL));
int i;
for (i = 0 ; i < 10 ; i++) {
printf("%d\n", aleatoire(1000, 1500));
}
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6549
Default Alt Text
Masterwork From Distant Lands (302 B)
Attached To
Mode
P109 random.c - issue fixed
Attached
Detach File
Event Timeline
Log In to Comment