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

#1 2009-10-12 07:02:36

greenfield
Scratcher
Registered: 2007-06-10
Posts: 3

Random Number Generator

Does anyone have any information on what type of RNG Scratch (Sqeak) uses?

Offline

 

#2 2009-10-12 08:38:14

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Random Number Generator

What do you mean?

Offline

 

#3 2009-10-12 08:55:05

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Random Number Generator

It uses a pseudo random number formula. If you have the source code you can view it under Kernel-Numbers -> Random

Offline

 

#4 2009-10-12 11:06:15

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Random Number Generator

Just wondering, whats that?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#5 2009-10-16 02:20:39

smith2287
Scratcher
Registered: 2009-10-12
Posts: 3

Re: Random Number Generator

greenfield wrote:

Does anyone have any information on what type of RNG Scratch (Sqeak) uses?

Exactly tell what do u want?

[link removed by moderator]

Last edited by coolstuff (2010-06-25 16:38:30)

Offline

 

#6 2009-10-16 20:32:40

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Random Number Generator

smith2287 wrote:

greenfield wrote:

Does anyone have any information on what type of RNG Scratch (Sqeak) uses?

Exactly tell what do u want?

How the random number generator generates random numbers, I think...


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#7 2009-11-05 22:43:37

Yoiyoi
Scratcher
Registered: 2009-09-17
Posts: 5

Re: Random Number Generator

<pick random( 7 )to( 7

Offline

 

#8 2009-11-06 10:23:48

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Random Number Generator

Yoiyoi wrote:

<pick random( 7 )to( 7

Please don't spam.

Offline

 

#9 2009-11-11 01:51:46

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Random Number Generator

songhead95 is correct:

songhead95 wrote:

It uses a pseudo random number formula. If you have the source code you can view it under Kernel-Numbers -> Random

If you want to give a gander at the code, go ahead.
However, for any practical purpose, why do you need to know?
I'm sure there's an easier way to do what you need.

Also, BWOG:
Yoiyoi wasn't spamming... I think he just didn't quite understand what greenfield was asking.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer