• 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

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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: |babbbbacaacabaccacacbacaacabacaabbccabaccbaacccaabcacabbabaabbaaabbbacaabaaccaccbcacbaccccccaac|
  • $EXEC($GET(f)) many times: |cbbabbcacbbcacabbacabbbccacabcbbccbabacabcabcbcbacabaaaacaaabbacbcbacacccacbbbcbcccaacaabcccbbb|
  • $EXEC($GET(f)) many times: |bcbbcbbbabbcccacbbccababbbaaaabbaaccaaaacbabcabbbaacbabbabacbbbbbccbcacaaaaacbaabacbaabcaacbacc|
  • $EXEC($GET(f)) many times: |ccbccbcbabcaccaabbacacbccbcaacaabccaaacacbbcabbbaaaccbcabccaccabbaccccacbabcaaacaaaaacabcacbcbb|
  • $EXEC($GET(f)) many times: |cabbccaabbbcccccbbcacbbaaabbcabbcbbbcabcbbacbbbccccaababcabaababaacacbaabbaaccbccbcaccbbbabbcbc|
  • $EXEC($GET(f)) many times: |acbacccbcabbabababcbacbaabaacbbbccacbcccbcababbbbaaccabbcbbbbcacaaabcabaccbcbcaaacbbccaabbaabbc|
  • $EXEC($GET(f)) many times: |ccacbcaaacaacccbbccbcbbbbcbcbababcaccbaacbbabbaaacbccbbbacccccbabbabcacbbcacbcbccbabcbbcbcacbcb|
  • $EXEC($GET(f)) many times: |bcaaaaabcbcbcacaabbaacbaabaabacabbcabcabcbccabbcaccbbabccaacbbcabcaacaaaabcaaccaabcbcbbbaaccbab|
  • $EXEC($GET(f)) many times: |cacbcccacbbbccacbbacbcbacacaacccccbacaacaacabbaabcccabcaaaacaabccbacaabccccaaaabcbcaababcaabcac|
  • $EXEC($GET(f)) many times: |acbabbacaabcbababcbbaccccaacabcbcabaacbcaabcccacaabcccbcbbbbcaabcaacbcbaabcbcabcbbaacccaabbbacc|
  • $GET(val_a) : |319|
  • $GET(val_b) : |309|
  • $GET(val_c) : |322|

See SpreadSheetPlugin#FuncLISTRAND

-- PeterThoeny - 2011-04-07

ItemTemplate
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
WaitingFor

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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback