Re: [Haskell] Random selection

2004-10-06 Thread Thomas L. Bevan
It's really irritating when people expect their homework to be done on line. It undermines the effectiveness of the mailing list by trying to take advantage of other people's good will. On Thu, 7 Oct 2004 01:18, ldou wrote: > I have a string,e.g. "1245670398", now I want to select two > element f

Re: [Haskell] different element

2004-10-06 Thread Jon Fairbairn
On 2004-10-06 at 10:37CDT "ldou" wrote: > In the random selection, it perhaps select the same element > of the string, how can I select two different elements? Consider the \\ operator. -- Jón Fairbairn [EMAIL PROTECTED] _

[Haskell] different element

2004-10-06 Thread ldou
In the random selection, it perhaps select the same element of the string, how can I select two different elements? ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Random selection

2004-10-06 Thread Vincenzo Ciancia
On Wednesday 06 October 2004 17:18, ldou wrote: > I have a string,e.g. "1245670398", now I want to select two > element from the string randomly, and the two element must > be different, how can I do? Have a look at the Random module from the standard libraries. V. ___

[Haskell] Random selection

2004-10-06 Thread ldou
I have a string,e.g. "1245670398", now I want to select two element from the string randomly, and the two element must be different, how can I do? ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Building from source

2004-10-06 Thread Christian Maeder
Simon Marlow wrote: If you don't want to build hood, then remove it from the tree. Did you perhaps check out *everything*? The right way is to check out fpconfig Ah, that was my error. I checked out everything by "cvs co fptools" instead of only doing "cvs co fpconfig". (When I read "fpconfig",

RE: [Haskell] Building from source

2004-10-06 Thread Simon Marlow
On 06 October 2004 10:10, Christian Maeder wrote: > after checking out fptools from cvs. The simple sequence > > $ autoreconf > $ ./configure > $ make > > failed in the directory hood, because the target boot is unknown > there. Could/Should this be fixed? > > I know how to use mk/build.mk and t

[Haskell] Building from source

2004-10-06 Thread Christian Maeder
Hi, after checking out fptools from cvs. The simple sequence $ autoreconf $ ./configure $ make failed in the directory hood, because the target boot is unknown there. Could/Should this be fixed? I know how to use mk/build.mk and the ProjectsToBuild variable. I don't need hood, but make still sho

Re: [Haskell] How to get different two random numbers

2004-10-06 Thread Stefan Holdermans
ldou, LD> How to get different two random numbers, and use the two LD> numbers in program,e.g LD> x = b + c LD> where LD> b && c are different random numbers between 1..n Have a look at the Random module from the standard libraries. > module Test where > import Random > > test :: Int