Skip to content

sleepycharlyy/lcg_example.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LCG Example Python

a linear congruential generator example in python. seed is generated with the current time

Video about this Topic

Work in progress...

Functions

  • randomInt() - generates random Integer between '0' and '2^48'
  • randomFloat() - generates random Float between '0' and '1'
  • randomIntRange(min, max) - generates random Integer between variables 'min' and 'max'
  • randomFloatRange(min, max) - generates random Float between variables 'min' and 'max'
  • randomBool(Chance) - generates random Boolean with the chance of getting true being 'chance' (Default: 0.5)

Support me

ko-fi