Creates a dense vector full of random values in the range [0, 1] @param length the length of the random vector to create @return a random vector of the specified length
(int length)
| 1136 | * @return a random vector of the specified length |
| 1137 | */ |
| 1138 | public static Vec random(int length) |
| 1139 | { |
| 1140 | return random(length, RandomUtil.getRandom()); |
| 1141 | } |
| 1142 | |
| 1143 | /** |
| 1144 | * Creates a dense vector full of random values in the range [0, 1] |