随机图像显示 [英] Random image display

查看:61
本文介绍了随机图像显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要显示的图像列表.但是,只有5个空间.我需要一次随机显示5个.

I have a list of images that need to be displayed. However theres only space for 5. I need to display 5 of these at a time randomly.

什么是最好的方法?

推荐答案

如果数组中有图像列表,则可以使用 shuffle().

If you have the list of images in an array, you could use shuffle().

这篇关于随机图像显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆