Well the first reason I need a generator is to pick a random race for a team if a team votes on x race and it is tied. Another reason is to send spawned units to a random point on a map.
You should try and find answers yourself before asking people on the forum.
If you DO know how to use the inbuilt random number generator and are asking how to set a better seed for extra randomness or some other related question then you should phrase your question better
You only need a Random number for the first part. If you are using Terran as Race 1, Protoss as Race 2 , Zerg as Race 3 and the Tie is Between Zerg and Terran then pick a Random Integer (Number) between 1 and 2, One can be Zerg and Two can be Terran or vice-verse.
A Random Real wouldn't be as effective as Random Point in Region, as you could get a random real that you can't reach. The Random Point in Region you can have it be in the Playable Map so no getting stuck (Except for Ground Units that try to get to an Island with no Ground pathing to it)
My Projects:
Sorted Multiplayer Leader Board
Card Shuffle Dialog Demo
Air Wars Mass
Blizzard Fan since Starcraft. The Single Player story is AMAZING IMO, I can't wait for the Expansions. In Warcraft 3 I only enjoy the Custom Maps scene (& Blizzards...
To post a comment, please login or register a new account.
Hello, I am just wondering how to make a random number generator since there is not built-in one.
Thanks in advance!
Details please? You can randomize an integer/real yourself at any given time between certain parameters.
Well the first reason I need a generator is to pick a random race for a team if a team votes on x race and it is tied. Another reason is to send spawned units to a random point on a map.
Have you tried using the random number generator that is built in?
http://lmgtfy.com/?q=starcraft+2+editor+random+number
You should try and find answers yourself before asking people on the forum.
If you DO know how to use the inbuilt random number generator and are asking how to set a better seed for extra randomness or some other related question then you should phrase your question better
@MoDTassadar: Go
You only need a Random number for the first part. If you are using Terran as Race 1, Protoss as Race 2 , Zerg as Race 3 and the Tie is Between Zerg and Terran then pick a Random Integer (Number) between 1 and 2, One can be Zerg and Two can be Terran or vice-verse.
A Random Real wouldn't be as effective as Random Point in Region, as you could get a random real that you can't reach. The Random Point in Region you can have it be in the Playable Map so no getting stuck (Except for Ground Units that try to get to an Island with no Ground pathing to it)