title: Common random number generator of iOS and Android
body: <p>I need a Random Number Generator that produces same sequence of numbers both in iOS and Android if we give the same Seed in both.</p>
  
  <p>I tried the rand() function with the srand(1000). But it gave different outputs.
  Then I tried mersenne twister. But that too gave difference sequence for same seed.</p>
  
  <p>Could any one please help me on this. </p>
  
  <p>I am using cocos2d-x for my development.</p>