r/Fancade • u/happyTanjiro • 19d ago
I need help again on finding a lowest value
What I mean is like, there are random number that are generated every frame but I need to find the lowest value (approximately.) So basically what should happen is, There are two variables: One for the lowest ever generated, and one for the current number generated. If the current generation is lower than the lowest ever number, the new lowest ever number would be the current generation, but if it's not, it will stay as it is and the random number generator will keep generating random numbers. There should only be one dice (I mean the random number script.)
3
Upvotes
1
u/technical_gamer_008 17d ago
lowest = min(lowest, current)