Random numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ambanks04
    New Member
    • Mar 2008
    • 8

    #1

    Random numbers

    Question 1:
    what statements do I use to asign random integers to the variable n. Here is one of my ranges

    1 less than or equal to n less than or equal to 2

    Question 2:
    Also write a single statement that prints a number as random form the set 2,4,6,8,10 and more problems there to

    What I am asking is what satements do I use for the above two questions
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by ambanks04
    Question 1:
    what statements do I use to asign random integers to the variable n. Here is one of my ranges

    1 less than or equal to n less than or equal to 2

    Question 2:
    Also write a single statement that prints a number as random form the set 2,4,6,8,10 and more problems there to

    What I am asking is what satements do I use for the above two questions
    The ones that allow you to print those out?

    Have you looked through our policy concerning homework?

    Comment

    • ambanks04
      New Member
      • Mar 2008
      • 8

      #3
      I am sorry I have misled anyone. I am not very good with computers. I only have to take one computer programming class. I am not looking for an answer I am looking for help. I thought if I posted the question instead of me trying to explain it, that would give somewhere a better idea. In order for ME to complete my assignment, I would like to know what function, keyword or whatever I would use to assign and print rnadom integers

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        For any general questions - especially "where to begin" or "is there a function to do this" - Google is the best place to start .

        Comment

        Working...