I have an array of integer of size 20 and there values range from 0-9 and i want atleast the value 0 placed in one location in the array once. how can i control rand() to be able to do that? cause there a possibility 1/10 will randomily generate 0
#include<stdio.h>
#include<stdlib.h>
main()
{
int array[20], i;
for(i=0;i<20;i++)
array[i] = rand()%10;
return 0;
}