Guest User

weird kakoune

a guest
Apr 1st, 2022
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. //MC for programmers
  2. //Given parameter N, return the desired exponential distribution for M samples
  3.  
  4.  
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <time.h>
  8. #include <math.h> // for the log function, compile with -lm
  9.  
  10. //Compile with: gcc -o challenge02 challenge02.c -lm
  11. //Execute with: ./challenge02 20 10 (Generate 10 samples from the exponential for parameter equal to 20
  12.  
  13.  
  14. //prototypes
  15. extern float exponential(float);
  16. void showN_exponential(float, int);
Advertisement
Add Comment
Please, Sign In to add comment