Ez Way for random.range

all i did was instead of Level1Password[0]; i did Level1Passwords[Random.Range(0, 5)]; simple as that but im gonna follow how the video says because it probably will be used for something in future teachings ahead.

1 Like

This is how I imagined doing it as well after looking at the Random.Range documentation. I wasn’t quite sure why he went through all of the extra steps, there may be some OOP reason for it but it is lost on me.

Privacy & Terms