-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRNG functions #133
Comments
Oh right, how did I not think of that 🤦♀️ |
@Dregu Do you know what the other pairs are used for or did you just pick them randomly in rando2? |
As is tradition. Well actually all I know is that some of them only change on level gen, others when you blow up stuff and some on every frame. I tried to pick appropriate ones for the occasion but probably forgot what I was supposed to do halfway. |
I looked at some level gen code and all I saw used the first pair, hence I labeled it as such. I guess I'll have to look at more code to figure out at least some of the others. |
I don't know how much sense starting random_index from 0 makes in lua...
random_int crashes when min==max and does crazy stuff when min>max
Anyway adding prng:random() that works as a drop in replacement for math.random() would be neat. I don't know if you already had this in mind.
The text was updated successfully, but these errors were encountered: