python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Generate random graph with probability p
Write a function in main.cpp, which creates a random graph of a certain size as follows. The function takes two parameters. The first parameter is the number of vertices n. The second parameter p (1 ...

Chandrapal Singh
Votes: 0
Answers: 1
A sudoku problem: Efficiently find or approximate probability distribution over chosen numbers at each index of an array with no repeats
I'm looking for an efficient algorithm to generate or iteratively approximate a solution to the problem described below.
You are given an array of length N and a finite set of numbers Si for each inde...
Jingjin Wang
Votes: 0
Answers: 1
setting a probablity for an action or game event
i want to set Win probability of 70% and a lose probability of 30 % for a specific game playing event or action how do i attain this in python any library for this to make this task easier
perplex _
Votes: 0
Answers: 1
Simulating a football league in python
I could use some help on this. I want to simulate a football league in python for an arbitrary number of teams and tally the points over a season in a table. The rules are simple:
Every team in the l...

johnadem
Votes: 0
Answers: 1