Borrar filtros
Borrar filtros

Randperm for decimals/below 1

2 visualizaciones (últimos 30 días)
Kash022
Kash022 el 15 de Dic. de 2016
Respondida: José-Luis el 15 de Dic. de 2016
I need to generate 16 unique random numbers between 0 and 1.3. However, randperm does not allow me to go below 1 nor does it allow decimals. Please let me know how to do this.
Thanks!

Respuesta aceptada

José-Luis
José-Luis el 15 de Dic. de 2016
result = rand(16,1) .* 1.3;

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by