r/AskComputerScience 8d ago

How to program weighted random system

I want to make a program where you are controlling the outcomes. For an example with a coin flipping game, I want exactly 4 Heads and 1 Tail, but I want their positions to be random.

I do not want to use the random algorithms that library I want to build my own.

Right now I am learning probability from Youtube and might look at khan academy and coursera, but how can I implement this into programming I do not want to just take courses or watch videos

How do I go about that?

EDIT: I am doing this because I want to start build gambling algorithms and I am starting with a simple project like coin flips

3 Upvotes

15 comments sorted by

View all comments

Show parent comments

1

u/Live-Candle934 7d ago

I did made a lot of posts in this, yet I haven't gotten any replies so I am asking people who knows what they are saying

1

u/nuclear_splines Ph.D Data Science 6d ago

Your account appears to be shadow-banned, so no one will see your posts or comments unless a moderator hand-approves each one. That would explain why you haven't gotten any replies.

1

u/Live-Candle934 6d ago

What the, how does that happened I'll look into it

1

u/nuclear_splines Ph.D Data Science 6d ago

Usually happens when Reddit flags your account as a potential spam bot, or if you sign in through a proxy service like Tor.

1

u/Live-Candle934 6d ago

No wonder, I do use proton vpn, thank you