Test-2 Random Numbers

Test-2 Random Numbers PDF Print E-mail

   Find the random number between 1 and 100.

  1. Find the random number between Min and Max where Min and Max are integers.
  2. Find the random number between Min and Max where Min and Max are values with 2 decimals. ( Tip- Convert to integer and back to real number)
  3. Find the coordinates of random point  between 0,0 and 1,50.
  4. Find the coordinates of random point  between 0,0 and 100,50.
  5. Find the coordinates of random point  between 50,20 and 100,50.
  6. Find the coordinates of random point  between x1,y1 and x2,y2 where x1<x2 and y1<y2 and values of x1,x2,y1,y2 are between 0 and 100.
  7. Find the coordinates of random points on sides of triangle where vertices are (0,0),(50,0) and (0,50).
  8. Find the coordinates of random points on sides of triangle where vertices are (x1,y1),(x2,y2) and (x3,y3).
  9. Find the coordinates of random line joining any two sides of a triangle.
  10. Find the length of random line joining any two sides of a triangle.
  11. Find the length of random line joining any two points on the circle where 100,100 is centre and 50 is radius.
  12. Find the length of random line joining any two points on the circle where x1,y1 is centre and r is radius.
  13. Find the coordinates of any arc  on the circle where x1,y1 is centre and r is radius.
  14. Find the random number between an array of numbers ( 23,54,15,87,43,29,5)
  15. Find the random point  between an array of number of points ( (0,0),(23,32),(54,15),(87,43),(29,5))
  16. Find length of line joining any two points in array of points ( (0,0),(23,32),(54,15),(87,43),(29,5))
  17. Find the random letter between a to z.
  18. Find the random letter between A to z
  19. Find the random fruit between (“Mango”,”Banana”,”Guava”,”Orange”,”Watermelon”)
  20. Find product of any two random numbers between 1 and 20.
  21. Find the random number between  1 and 20. Remove that number from list and find random number from remaining numbers and continue the process.
  22. Select two images at random from each category and prepare photo gallery
  23. Select one joke from each category and prepare Todays Jokes page
  24. Select random color from web safe colors for graphic each time
  25. Select random question from each category and prepare a question paper.
  26. Generate new question and answer each time by taking random value for one parameter between set min and max numbers.
  27. Generate new question and answer each time by taking random value for many parameters between set min and max limits for each parameter.
  28. Draw triangle with random coordinates where lengths of sides are between min and max limits
  29. Draw circle with fixed radius and centre at random between x1,y1 and x2,y2
  30. Draw circle with centre at random between x1,y1 and x2,y2 and radius at random between r1 and r2.