Generating random numbers without repitiion
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    S. David
 el 29 de Mayo de 2014
  
    
    
    
    
    Comentada: S. David
 el 29 de Mayo de 2014
            Hello all,
How can I generate, say 10, random numbers uniformly distributed between Nmin and Nmax, without repeating any one of them twice?
Thanks
0 comentarios
Respuesta aceptada
  Azzi Abdelmalek
      
      
 el 29 de Mayo de 2014
        
      Editada: Azzi Abdelmalek
      
      
 el 29 de Mayo de 2014
  
      Nmin+rand(1,10)*(Nmax-Nmin)
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

