ScratchData LogoScratchData
Back to linearlemur's profile

Linear Congruential Generator (Random Number Generator)

LIlinearlemur•Created June 17, 2021
Linear Congruential Generator (Random Number Generator)
4
1
23 views
View on Scratch

Description

A linear congruential generator is a method to generate pseudo-random numbers. It works by multiplying a constant by a random seed, adding that with another constant, and getting the remainder of that sum and yet another constant. In this case, the seed is the number of seconds since the Unix epoch, January 1st, 1970. There's much better random number algorithms out there, but this is one of the most basic.

Project Details

Project ID545600487
CreatedJune 17, 2021
Last ModifiedJune 20, 2021
SharedJune 17, 2021
Visibilityvisible
CommentsAllowed