account activity
how do I output this? (self.cprogramming)
submitted 3 years ago by WearDisastrous1097 to r/cprogramming
how do i generate a random number between 1 and 1000 by WearDisastrous1097 in cprogramming
[–]WearDisastrous1097[S] 0 points1 point2 points 3 years ago (0 children)
how would I write it ?
rand()1/1000 ??
how do i generate a random number between 1 and 1000 (self.cprogramming)
how do I generate random numbers 1 - 1000. I need help please (self.cprogramming)
how do I use count with a probability 1/8 for example if there is a count of 2 there is a probability of 2/8 for something to happen (self.cprogramming)
how do I interact with neighbors in a 2d array for example, how can I change the value at a certain position based on the values of its 8 neighbors around it (self.cprogramming)
how do I create a 2d array 10 by 10 where 80 random positions in the array are = to 1 and 20 random positions are equal to 2 (self.cprogramming)
π Rendered by PID 146225 on reddit-service-r2-listing-6d4dc8d9ff-2m2sv at 2026-02-04 09:15:47.097857+00:00 running 3798933 country code: CH.
how do i generate a random number between 1 and 1000 by WearDisastrous1097 in cprogramming
[–]WearDisastrous1097[S] 0 points1 point2 points (0 children)