• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Picking random variable in an array

Status
Not open for further replies.
Level 13
Joined
Mar 29, 2012
Messages
530
x[1] = 50
x[2] = 52
x[3] = 54
x[4] = 56
x[5] = 58

I have these five array variables and I want to pick each one by random without picking it back twice or more.
How do I achieve this? Thanks in advance.
 
Status
Not open for further replies.
Top