Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 700 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 700 Bytes

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