Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shortest useful program
#21
Reasonable idea. How about we start with a few one line functions:

Code:
DEF FNround# (m#) = SGN(m#) * INT(100 * ABS(m#) + .5) / 100

DEF FNmin (a, b) = a * ABS(a <= b) + b * ABS(a > b)

DEF FNmax (a, b) = a * ABS(a >= b) + b * ABS(a < b)

DEF FNroll3D6% = INT(6 * RND) + INT(6 * RND) + INT(6 * RND) + 3

DEF FNflip$ = MID$("HEADTAIL", 4 * INT(2 * RND) + 1, 4)

Now, lets see some real entries!
Reply


Messages In This Thread
Shortest useful program - by xhantt - 08-10-2003, 03:02 AM
Shortest useful program - by toonski84 - 08-10-2003, 03:58 AM
Shortest useful program - by Moneo - 08-10-2003, 06:31 AM
Shortest useful program - by toonski84 - 08-10-2003, 08:54 AM
Shortest useful program - by xhantt - 08-10-2003, 10:09 AM
Shortest useful program - by ak00ma - 08-10-2003, 10:30 AM
Shortest useful program - by toonski84 - 08-10-2003, 10:42 AM
Shortest useful program - by xhantt - 08-10-2003, 09:49 PM
Shortest useful program - by ak00ma - 08-10-2003, 10:12 PM
Shortest useful program - by Phydaux - 08-11-2003, 02:08 AM
Shortest useful program - by Moneo - 08-11-2003, 03:22 AM
Shortest useful program - by toonski84 - 08-11-2003, 05:00 AM
Shortest useful program - by oracle - 08-11-2003, 05:10 AM
Shortest useful program - by Moneo - 08-11-2003, 06:25 AM
Shortest useful program - by toonski84 - 08-11-2003, 07:06 AM
Shortest useful program - by xhantt - 08-11-2003, 10:32 PM
Shortest useful program - by Agamemnus - 08-11-2003, 11:41 PM
Shortest useful program - by Moneo - 08-11-2003, 11:46 PM
Shortest useful program - by Moneo - 08-12-2003, 11:22 PM
Shortest useful program - by biostar - 08-16-2003, 01:07 AM
Shortest useful program - by oracle - 08-16-2003, 03:31 AM
Shortest useful program - by Moneo - 08-16-2003, 04:16 AM
Shortest useful program - by oracle - 08-16-2003, 06:45 AM
Shortest useful program - by Moneo - 08-16-2003, 07:46 AM
Shortest useful program - by whitetiger0990 - 08-16-2003, 09:03 AM
Shortest useful program - by Moneo - 08-16-2003, 09:48 AM
Shortest useful program - by ak00ma - 08-16-2003, 12:46 PM
Shortest useful program - by Moneo - 08-16-2003, 11:08 PM
Shortest useful program - by whitetiger0990 - 08-17-2003, 12:53 AM
Shortest useful program - by Moneo - 08-17-2003, 04:29 AM
Shortest useful program - by ak00ma - 08-17-2003, 10:59 AM
Shortest useful program - by oracle - 08-18-2003, 01:41 AM
Shortest useful program - by Moneo - 08-22-2003, 05:24 AM
Shortest useful program - by pr0gger - 08-23-2003, 03:32 AM
Shortest useful program - by whitetiger0990 - 08-23-2003, 03:43 AM
Shortest useful program - by Moneo - 08-23-2003, 04:07 AM
Shortest useful program - by otaku84 - 10-14-2003, 03:40 PM
Shortest useful program - by oracle - 10-15-2003, 12:49 AM
Shortest useful program - by seph - 10-15-2003, 02:49 AM
Shortest useful program - by SCM - 10-15-2003, 07:18 AM
Shortest useful program - by Moneo - 10-15-2003, 09:09 AM
Shortest useful program - by oracle - 10-15-2003, 10:27 AM
Shortest useful program - by Lanzaa - 10-16-2003, 06:25 AM
Shortest useful program - by seph - 10-16-2003, 07:18 AM
Shortest useful program - by oracle - 10-17-2003, 01:45 AM
Shortest useful program - by Dav - 10-17-2003, 04:11 AM
Shortest useful program - by Dav - 10-22-2003, 05:51 AM
Shortest useful program - by seph - 10-22-2003, 07:22 AM
Shortest useful program - by oracle - 10-22-2003, 10:42 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)