I got it!
Type: Posts; User: Samyx
I got it!
Voce eh brasileira?
i believe just the first part will do, since he is not doing a loop or anything.
Now when I run the program I have this:
...
ERROR in uniform.discrete_uniform(): a=100 b=99
ERROR in uniform.discrete_uniform(): a=100 b=99
ERROR in...
Can I say main returns 0?
Thank everyone! I fixed the problems you guys pointed out, now this is the warning:
[113] $ gcc -Wall -Wextra -o ex3 ex3.c ex3test.c uniform.c -lm
ex3test.c: In function `main':
ex3test.c:86:...
Hi Everyone,
I trying to use the file ex3test.c to test the following program(ex3.c):
#include <stdio.h>
#include <stdlib.h>
/* Step 1: define your struct here */
typedef struct _Node {
how did u guys come up with those percentages?
The user would entry those values, but you can use K=10 and M=3
No wrap around in this one
I thought about it this way:
double consecutiveOnesProbability (int K, int M, int numTrials)
{
int randomarray[];
for (int a=0; a<=K; a++){ /* initialize an array...
anyone?
Hey everyone, I am having some difficult trying to calculate the probability of a sequence of consecutive ones being generated in an array when the position is chosen randomly.
For example: I want...