This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-03 12:41:37

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Probability Help!

I am making a game called POP! I am trying to make the probability of a black balloon lesser than all the other balloons. How do I do this?


Get ready for domination of:  tongue

Offline

 

#2 2012-04-03 13:22:41

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Probability Help!

Use the

set [random v] to (pick random (1) to (10))
block.

Last edited by Hardmath123 (2012-04-03 13:23:10)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2012-04-03 13:42:26

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Probability Help!

Hardmath123 wrote:

Use the

set [random v] to (pick random (1) to (10))
block.

Not random. Rarer.


Get ready for domination of:  tongue

Offline

 

#4 2012-04-03 14:10:22

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Probability Help!

wait <pick random (6) to (15)> secs
broadcast [black balloon v]

Offline

 

#5 2012-04-03 14:47:14

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Probability Help!

if < (pick random 1 ***) = [1]>
<(broadcast) black baloon

Offline

 

#6 2012-04-03 15:22:45

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Probability Help!

Closed by the topic owner's request.  smile

Offline

 

Board footer