topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 11:51 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Random sequence generator  (Read 7446 times)

antonov2754

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
IDEA: Random sequence generator
« on: March 08, 2011, 01:15 AM »
I would like to have a program that brings some randomness to my life. It seems rather simple and useful for others too.
This application helps to do something in random order like watching episodes of a film, reading periodical comic strips or accomplishing a to-do-list of actions.

What it should do:

1. Preferable output format is a text file with meaningful name chosen by the user. The file is saved in the application folder. Application should ask for overwriting the file.
Minimum: it contains random numbers, each on the new line.
Maximum: it can contain random numbers in several aligned columns (for convenience, number of columns chosen by user)

2. The program should produce randomness in several formats with range entered by user.
Minimum:
- completely random (integer numbers from A to B)
- random sequence (integer numbers from A to B in mixed order, including all numbers from A to B, no duplicates)
Maximum:
- random date sequence (days from A to B in mixed order, including all days from A to B, no duplicates)
- random date sequence with days of week filter (for example, only Mondays and Wednesdays)

3. There should be an option to leave space for completion marks at the left of the random numbers. I think a nice variant will be a space between square braces:
[X] 27
[X] 4
[ ] 14
[ ] 12

An example implementation can be found online: http://www.random.org/sequences/
Drawbacks:
- Does not work offline
- Does not work with dates
- No completion marks
- I have to copy data and save files manually

Thanks in advance for all your ideas and efforts.

awopbamboo

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 118
    • View Profile
    • Donate to Member
Re: IDEA: Random sequence generator
« Reply #1 on: March 09, 2011, 06:39 AM »
Hi

I'm kicking my heels a bit at work, so I'll give this a shot...

_____________________________________________
J.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Random sequence generator
« Reply #2 on: March 09, 2011, 07:27 AM »
Sorry for not warning, but I've been working on this since yesterday  :-[

(but hey, 2 solutions are better than one, right? ;) )

awopbamboo

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 118
    • View Profile
    • Donate to Member
Re: IDEA: Random sequence generator
« Reply #3 on: March 09, 2011, 07:33 AM »
Thats ok, I've not really started it...

Feel free to carry on, I just won't treat mine with any urgency!
_____________________________________________
J.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Random sequence generator
« Reply #4 on: March 09, 2011, 02:06 PM »