random numbers

272 views
Skip to first unread message

farqall cross

unread,
Dec 6, 2010, 6:56:14 AM12/6/10
to tins...@googlegroups.com
Hello All,

I have done a search of your database and couldn't find an answer to my question, a really simple one compared to most of the discussions I read here.

I want to generate random numbers from 1 - 99, WITHOUT replacement. Is this possible? If so, is there anyone out there who is happy to list the steps. I can get them ok for now, but they allow for replacement. Thnx in advance.

cheers

lloyd brown


Sean Bird

unread,
Dec 6, 2010, 7:14:35 AM12/6/10
to tins...@googlegroups.com
This is very simple using randSamp functionality that has “no repeat” functionality:

 

 

I've had student put this in their library so they can use it from any document.
image001.png

Nelson Sousa

unread,
Dec 6, 2010, 8:06:18 AM12/6/10
to tins...@googlegroups.com

You can use randsamp, that allows yoi to extract a sample fr o a list with or without repetition:

Randsamp( list, tries, 0€)

Not sure if 0 on the 3rd argument is with or without repetition, check on the catalog.

Tries is the number of elements to extract.

Finally, list should be {1,2,3,...,99}.

So, to extract 25 elements without repetition,

randsamp(seq(i,i,1,99),25,0)

Cheers

--
Nelson
--
To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
The tns documents shared by group members are archived at
http://lafacroft.com/archive/nspire.php

farqall cross

unread,
Dec 6, 2010, 8:25:39 AM12/6/10
to TInspire Group
Hello Nelson,

Ok, thankyou for that. I will have a play and let you know how i go.

cheers

lloyd brown




Subject: Re: [tinspire] random numbers
From: nso...@gmail.com
Date: Mon, 6 Dec 2010 13:06:18 +0000
To: tins...@googlegroups.com

farqall cross

unread,
Dec 6, 2010, 8:24:01 AM12/6/10
to TInspire Group
Hello Sean,

Thnx heaps for that. Now you must understand that I am a very early beginner at this so I hope that you can have a little patience with me. My next question is, do I type that instruction into the "calculate" screen? I take it that there is not "randintnorep" function preset into the calculator. It is clearly time for me to stop procrastinating over getting to know this calculator and to get my head around it properly. I believe that I do have a booklet that, among a few other things, will tell me how to store things in a library.

cheers

lloyd brown




Date: Mon, 6 Dec 2010 07:14:35 -0500
Subject: [tinspire] random numbers
From: covena...@gmail.com
To: tins...@googlegroups.com


This is very simple using randSamp functionality that has “no repeat” functionality:

 

 

I've had student put this in their library so they can use it from any document.

image001.png

Nelson Sousa

unread,
Dec 6, 2010, 8:37:15 AM12/6/10
to tins...@googlegroups.com
Jyst copy and paste both statements.
The first one defines the function, the second calls it.

--
Nelson

On 6 de Dez de 2010, at 13:24, farqall cross <farq...@msn.com> wrote:

Hello Sean,

Thnx heaps for that. Now you must understand that I am a very early beginner at this so I hope that you can have a little patience with me. My next question is, do I type that instruction into the "calculate" screen? I take it that there is not "randintnorep" function preset into the calculator. It is clearly time for me to stop procrastinating over getting to know this calculator and to get my head around it properly. I believe that I do have a booklet that, among a few other things, will tell me how to store things in a library.

cheers

lloyd brown




Date: Mon, 6 Dec 2010 07:14:35 -0500
Subject: [tinspire] random numbers
From: covena...@gmail.com
To: tins...@googlegroups.com

This is very simple using randSamp functionality that has “no repeat” functionality:

 

<image001.png>

 

I've had student put this in their library so they can use it from any document.

farqall cross

unread,
Dec 6, 2010, 8:40:06 AM12/6/10
to TInspire Group
OK!! Thnx for that Nelson. I'm not at a computer with it installed right now so I can't try it right away but I will have a play first thing in the morning.


cheers


lloyd brown




Subject: Re: [tinspire] random numbers
From: nso...@gmail.com
Date: Mon, 6 Dec 2010 13:37:15 +0000
To: tins...@googlegroups.com

Sean Bird

unread,
Dec 6, 2010, 12:55:46 PM12/6/10
to tins...@googlegroups.com
The screen shot that I sent was taken from a Notes page.
But yes you can enter the text on a Calculator page too.
The list that comes as the output can be stored and put into a List & Spreadsheet.

Does anyone have time to put together an example tns file?
It will be a while before I can do it. Besides the end of the semester and I have a lot of things to grade, at the last conference I went to I left my power cord for my laptop in the room I was presenting. That is a hazard of using many pieces of technology, you've got to remember to pack it all up.
 I tried getting a universal adapter from Best Buy, but none of the tips were the correct size. I ordered the correct tip, so hopefully soon I'll be able to spend more time on extra curricular activities.


 do I type that instruction into the "calculate" screen? I take it that there is not "randintnorep" function preset into the calculator.



--
Sean Bird
AP Calculus & Physics,
NHS Adviser & Rocket Team Supervisor
Math & Science Technology Coordinator
Covenant Christian High School
7525 West 21st Street
Indianapolis, IN 46214
Phone: 317/390.0202 x104 Fax: 317/390.6823
Website: http://covenantchristian.org/bird
work Email: sean...@covenantchristian.org
personal Email: covena...@gmail.com
Psalm 111:2 “Great are the works of the LORD, studied by all who delight in them.”

Neville Windsor

unread,
Dec 6, 2010, 4:57:27 PM12/6/10
to tins...@googlegroups.com

Without repetition requires a 1 at the end, not 0.  Thus randsamp(seq(i,i,1,99),25,1) will generate 25 different random numbers between 1 and 99.

Neville Windsor

Burnie, Tasmania

 

 

From: tins...@googlegroups.com [mailto:tins...@googlegroups.com] On Behalf Of Nelson Sousa
Sent: Tuesday, 7 December 2010 12:06 AM
To: tins...@googlegroups.com
Subject: Re: [tinspire] random numbers

 

 

You can use randsamp, that allows yoi to extract a sample fr o a list with or without repetition:



Please consider the environment before printing this, or any other e-mail or document

________________________________________
CONFIDENTIALITY NOTICE AND DISCLAIMER

Information in this transmission is intended only for the person(s) to whom it is addressed and may contain privileged and/or confidential information. If you are not the intended recipient, any disclosure, copying or dissemination of the information is unauthorised and you should delete/destroy all copies and notify the sender. No liability is accepted for any unauthorised use of the information contained in this transmission.

This disclaimer has been automatically added.

Nelson Sousa

unread,
Dec 6, 2010, 6:13:24 PM12/6/10
to tins...@googlegroups.com
thanks for the correction. I didn't have my Nspire with me, I was
speaking from heart.

Nelson

farqall cross

unread,
Dec 6, 2010, 10:36:56 PM12/6/10
to TInspire Group
ThnxNeville, that helps :D
 
cheers
 
lloyd brown
 

 

From: Neville...@academy.tas.edu.au
To: tins...@googlegroups.com
Date: Tue, 7 Dec 2010 08:57:27 +1100
Subject: RE: [tinspire] random numbers
Reply all
Reply to author
Forward
0 new messages