RavenHex1296 / space-empires

0 stars 0 forks source link

Helpful tip for random number generation (both for now and the future) #2

Open snowthesprite opened 3 years ago

snowthesprite commented 3 years ago

Fubbernuck I pressed enter and it sent it. Either way, there is a prebuilt random integer function inside the random library. It goes random.randint(lowest term, highest term) this includes the lowest and highest terms so random.randint(1,2) would return either 1 or 2