Is there a way to select the type of indices Ti with sprand()?

I could probably use the similar() function as posted 3 hours ago here. Thanks @gdalle.

I am still wondering wether a sprand() method taking two types in parameters would be useful though :thinking: