What Means Rand "stream" 1 2;?

What means rand "Stream" 1 2; ?

I saw this in the docs but seems strange.Why would you use a string like that?

Cheers

If you take a look at the mel command docs, it explains the stream usage.

Essentially, there are various random number streams you can use. This means if you supply two streams with the same boundaries (min/max values), you'll get back two separately random numbers. You can also seed your streams so that they will be the same each time you play back your animation. Thus, it can be important to remember the stream names and make use of it.

For example, you might want to create a random stream1 and assign it to your particle emitter's rate. Then later, you might want to create another particle emitter and assign it to the same random numbers. One way you can do this, is to remember that stream1 was what you declared earlier.

Most people don't worry about streams, and just use the default stream with a seed. If it's very important to have two numbers the same, there are easier ways to match them up (direct connections, expressions, etc).

From the docs:

Multiple random number streams:
The three stream-based variants of rand accept a stream name parameter which specifies the name of the random number stream to use when generating random numbers. For details on random number streams please refer to the section "An overview of MEL's multiple random number stream support" later in this document. The behaviour of the function is identical to the non-stream versions with the exception that random number generation is performed from the specified rather than the default random number stream. The first two stream-based variants take a string which specifies the stream name. The third variant takes an integer as the stream name (this is a convenience function which internally converts the integer to a string in the event the use wants to work with numeric-only stream names).