• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6679: Small random issue with LISTRAND

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension SpreadSheetPlugin Low Closed   patch 5.0.2

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


The LISTRAND function has a small issue, where last item only got 50% of fair share to get picked

-- TWiki:Main/PeterThoeny - 2011-04-07

Test case:

  • $SET(f, $NOEXEC($SET(i, $LISTRAND(a, b, c))$SETM(val_$GET(i), +1)$GET(i))) : ||
  • $EXEC($GET(f)) many times: |acccacaaaabcbaabcaacccabcbbccacaaacbabccbaccabbbcbbacaaabbbbccacaccbcaabcbbaabbbacacaabbcabcbbc|
  • $EXEC($GET(f)) many times: |ccacaccaaabbcbbabbcacbcbabacabcccbacaaacbbbaabbacacccbabbbbbabababcbcaabcbbbcaabbababbbabbcbbbc|
  • $EXEC($GET(f)) many times: |ccbacaccbaaabbabbacbcccabbababaabbcbccbaaaaabcacbacbabcbaabbbaabacccccbaacbaaacacbbabcbcbbbcaba|
  • $EXEC($GET(f)) many times: |bbcacbccbbbacbcbbbcabbcacccbacaccaaaccbaaaacabacacabaacaacbcaccabbacaaaacbbbbbbacacacbbbbabaccb|
  • $EXEC($GET(f)) many times: |bacbbcbababaacbccccaacabccaccaabcbaabbcbcbbaccabaabbcacacaacaccbccbcbbacccccbccacbacbaabbcbabcc|
  • $EXEC($GET(f)) many times: |bbaacbcbabcacaccacbcaaaccbccacacbcacacaaacaaaabababacccacbbbbbbbacacbaaaaccabbcbcccbcbacbbcacca|
  • $EXEC($GET(f)) many times: |aaacabacaccaabbcaccbacaaaabbbabacababccbcccaabbabbacbcbaaabbbcbbbacaaaabbabcbcbacbcacccbcbbbcaa|
  • $EXEC($GET(f)) many times: |ccbbaccccbbaaaccaaaccbacaabccabaacccbcaacabaaaaacbabaccacbbcabbbacbbaacacaacbccbccbccabcacbcabb|
  • $EXEC($GET(f)) many times: |acccbcbaabbccaabcacaaaabcccccbbaabbbbbbcbbcccaabbcccababbccabcbbccbcacabbcacacababababcccbabbcc|
  • $EXEC($GET(f)) many times: |bbbcbaccacacacacbbcacabbaaaabcbbbbccbcbbbaccaaabbbbbabcaacabbbbacbcbcabaaabcabcbbaabbaabccbbccb|
  • $GET(val_a) : |315|
  • $GET(val_b) : |323|
  • $GET(val_c) : |312|

See SpreadSheetPlugin#FuncLISTRAND

-- PeterThoeny - 2011-04-07

Summary Small random issue with LISTRAND
ReportedBy TWiki:Main.PeterThoeny
Codebase 5.0.1, ~twiki4
SVN Range TWiki-5.0.1, Tue, 29 Mar 2011, build 20831
AppliesTo Extension
Component SpreadSheetPlugin
Priority Low
CurrentState Closed

Checkins TWikirev:20966 TWikirev:20967
TargetRelease patch
ReleasedIn 5.0.2
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2011-05-07 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback