Unnecessary, obscure way to shuffle a list in the Advanced State and Side Effects codelab?
@dturner 已经在做这个了。
开始于 2025年10月27日。
评估
这个 Issue 还没有评估数据。
描述
At the line linked below, shuffled given a Random whose seed is generated Randomly (which is not substantially different than not providing a Random at all). Why?
And if you want a number between 1 and 100, why shuffle a collection of 100 numbers rather than use Random.nextInt (1,101)?
- 主要语言
- Kotlin
- 星标
- 1.7k
- 派生
- 800
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/codelab-android-compose 的其他 Issue
-
android/codelab-android-compose#548 · 3 条评论 · 已指派 1 人 ·
-
android/codelab-android-compose#534 · 1 条评论 · 已指派 1 人 ·
-
Build issue with AdvancedStateAndSideEffectsCodelab in Android Studio Ladybug | 2024.2.1 Patch 2 未关闭
android/codelab-android-compose#514 · 1 条评论 · 2 个 reaction · 已指派 1 人 ·
-
android/codelab-android-compose#505 · 1 条评论 · 已指派 1 人 ·
-
android/codelab-android-compose#501 · 1 个 reaction · 已指派 1 人 ·
查看 android/codelab-android-compose 的全部 Issue
相似的 Issue
-
autoteam community team/use
难度 2/5 1-3 小时 新手友好度 78/100
-
android: AlbumArtistDetailViewModel keeps groupKeys of albums that disappeared in expandedAlbums 未关闭task
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 90/100
aaif-goose/goose#12496 ·
-
Schema rejections are neither logged nor attributed, so the offending object cannot be identified 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
zotero/zotero-android#350 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
Richie97/track-history#325 ·