ScratchData LogoScratchData
Back to TigerTweets's profile

Random number generator avreage number finder

TITigerTweets•Created February 19, 2016
Random number generator avreage number finder
2
2
46 views
View on Scratch

Instructions

This is a script i made because i was curious how random a random number generator really is. This code generates a specified amount of numbers (the slider amount) all the numbers are numbers 1 - max number amount The code then finds the average of the random numbers. and it should be about 1/2 of the number that is in the slider (max number) Variables: i is the total of all the numbers added up n is a counter variable avg. number is the average of the number list max number is the amount of times the code is supposed to generate a number between 1 and max number (1 - max number)

Description

RNG's are surprisingly pretty random the more numbers you put in the closer the number gets to between the min and max numbers. P.S. Sorry if none of this makes sense i did it while i was doing homework so i was not really focused too much on writing a big detailed explanation. USE TURBO MODE

Project Details

Project ID98443140
CreatedFebruary 19, 2016
Last ModifiedFebruary 19, 2016
SharedFebruary 19, 2016
Visibilityvisible
CommentsAllowed