我的随机数略有不同,具体取决于操作系统(Mac vs Linux):
select loginID
from t
group by loginId
having min(default) = 1;
Linux的:
String input = "1,3,7,11,5,16,13,12,22,14";
String[] keepStrings = input.split(",");
int[] keep = new int[keepStrings.length];
int[] rank = new int[keep.length];// create a rank array
// arrays can be duplicated only by doing field by field copy. Otherwise it may lead to aliasing.
for (int i = 0; i < keepStrings.length; i++) {
keep[i] = Integer.parseInt(keepStrings[i]);
rank[i] = keep[i];
}
Arrays.sort(rank);
System.out.println(keep); //[1, 3, 7, 11, 5, 16, 13, 12, 22, 14]
System.out.println(rank); //[1, 3, 5, 7, 11, 12, 13, 14, 16, 22]
的Mac:
set.seed(890458, kind="Mersenne-Twister", normal.kind="Inversion")
print(rlnorm(1504)[1504], digits=22)
sessionInfo()
这是预期的吗?反正是否保证跨平台的重复性?它也发生在rnorm而不是rlnorm但数字更高。