Pergunta de entrevista da empresa NVIDIA

A function generates uniform random numbers? how will you use it to print all the elements of the array randomly?

Respostas da entrevista

Sigiloso

26 de fev. de 2013

So that can be implemented by making the size of the random number generation equal to the size of the array and then print all the numbers at the indexes generated by the function. Is this right?

Sigiloso

1 de mai. de 2014

List list = new ArrayList(); for(int i = 1; i <= 100; i++) list.add(i); Collections.shuffle(list);