This material is part of the course Practical Introduction to Parallel Programming and meant for educational purposes only.
Task
Write a program that generates random numbers between 0 and 1 and counts how many times the random number is smaller than 0.3. Once the program has found 10 random numbers smaller than 0.3 it should return and print the random numbers found.
Hint
Write a function that generates a single random number and stores it into a global array if the random number is smaller than 0.3. The function should generate a new task if less than 10 random numbers have been found so far.